go to bug id or search bugs for
All columns are fetched as strings, even numeric, bools, etc...
Numeric columns (integers, floats) should be returned as native values.
In MySQL ND package this works as expected.
Please fix this for Firebird too.
Add a Patch
Add a Pull Request
Changing this to be a FR;
Big side note here, every database driver seems to do this very differently and there is not much consistency across the board, even in PDO where I believe we had an option or similar to do so (or maybe it was just MySQL, I can't remember for certain).
But all in all, it would be nice to do this for all database drivers, or at least those that are in the core now with the increased typeness in PHP.
Work in progress is here
please the same for mysqli / pdo-mysql so that strict-typing becomes really useable because currently you need to to (int)$row['id'] when you pass the value to function(int $id)
see also https://bugs.php.net/bug.php?id=73650
PR https://github.com/php/php-src/pull/2279 is merged.