From: robert_xp at gmx dot net Operating system: Debain Etch PHP version: 5.3.1 PHP Bug Type: MySQLi related Bug description: Native type cast returns wrong result
Description: ------------ mysqlnd implements native type casting but returns string for some integer values that seem too big. A fix is also in my mysqlnd patch on http://www.xarg.org/2009/12/php-hacking/ Reproduce code: --------------- - Expected result: ---------------- any int64 value < INT_MAX should be casted to int as well -- Edit bug report at http://bugs.php.net/?id=50651&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50651&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50651&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50651&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50651&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50651&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50651&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50651&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50651&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50651&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50651&r=support Expected behavior: http://bugs.php.net/fix.php?id=50651&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50651&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50651&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50651&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50651&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50651&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50651&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50651&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50651&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50651&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50651&r=mysqlcfg
