If you’ve ever wanted to have the PHP MySQL functions return back PHP variables cast to something other than strings this patch is for you. It’s useful for decreasing memory usage if you’re pulling down integer values for example, especially if you’re then storing them in a cache such as APC or MySQL. Read the patch for details, download page is here.
2 Responses for "PHP MySQL “typed” functionality"
Brian, can this be added to PHP 5.3.0?
I’d love for it to be added officially, but I figured it would be good to see some more testing on it first. It could possibly have unintended side affects on other systems if data is lost in a cast. It also seemed like something that may not get in easily, but If there’s enough interest here I could definitely bring it up on the internals list to see if it’s viable.
Leave a reply