Req #50651 [Asn]: Native type cast returns wrong result
Edit report at http://bugs.php.net/bug.php?id=50651&edit=1
ID: 50651
Updated by: uw@php.net
Reported by: robert_xp at gmx dot net
Summary: Native type cast returns wrong result
Status: Assigned
Type: Feature/Change Request
Package: MySQLi related
Operating System: Debain Etch
PHP Version: 5.3.1
Assigned To: mysql
New Comment:
Andrey, can you have a look at the type casting related part of the
suggested patch? Sounds good to me.
Previous Comments:
------------------------------------------------------------------------
[2010-01-04 12:11:58] robert_xp at gmx dot net
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 this bug report at http://bugs.php.net/bug.php?id=50651&edit=1
Thread (4 messages)