From: r dot schneider at artworx dot at Operating system: PHP version: Irrelevant Package: PDO related Bug Type: Feature/Change Request Bug description:Fetch provides only strings with MySQL
Description: ------------ --- >From manual page: http://www.php.net/pdostatement.fetch --- With MySQL all those fetch methods provide only strings. All integers in the table have to be converted manually. This should be noted somewhere. I didn't know this for long time and I didn't have any problem with this because of the implicit conversioning in php. I detected it just recently. I don't understand why PDO behaves like this. This makes the proper usage of fetchObject('myClass') not possible. Maybe I have a wrong understanding of how to use php with its implicit conversions. Should I avoid distinguishing between data types, should all primitive data type operations work also with strings? At least I would expect that the documentation clearly states this fact. But better would be if the correct data types gets used. -- Edit bug report at https://bugs.php.net/bug.php?id=63958&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63958&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63958&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63958&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63958&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63958&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63958&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63958&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63958&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63958&r=support Expected behavior: https://bugs.php.net/fix.php?id=63958&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63958&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63958&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63958&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63958&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63958&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63958&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63958&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63958&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63958&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63958&r=mysqlcfg
