I'm kind of anal about variable type, and it annoys me that PHP's MySQL functions return all result values as strings, regardless of column type.
What's the rationale behind this? When MySQL returns a field containing an integer, why wouldn't PHP expose it as an integer? I know PHP is a loosely typed language, but that's no excuse for pretending that type doesn't exist.
Even the mysqli_*() functions are like this. Is this one of those things like gpc_magic_quotes—"it seemed like a good idea at the time"?
I'm currently tweaking my home-brew database library to behave more intuitively. If I didn't spend so much time messing around with plumbing, I might get some actual work done 🙂