Edit report at https://bugs.php.net/bug.php?id=60052&edit=1
ID: 60052
Comment by: matthew dot jones at ramtech dot co dot uk
Reported by: m dot vanduren at jonker dot nl
Summary: Integer returned as a 64bit integer on X64_86
Status: Closed
Type: Bug
Package: PDO Firebird
Operating System: All (linux tested)
PHP Version: 5.3.8
Assigned To: mariuz
Block user comment: N
Private report: N
New Comment:
The commited patch doesn't work. The change bellow appends "ld" to the number.
- *len = slprintf(*ptr, CHAR_BUF_LEN, "%" LL_MASK "d",
*(ISC_INT64*)var->sqldata);
+ *len = slprintf(*ptr, CHAR_BUF_LEN, "%ld" LL_MASK "d",
*(ISC_INT64*)var->sqldata);
I think just the single change in the earlier patch is required. At least that worked for me.
Previous Comments:
------------------------------------------------------------------------
[2015-12-03 14:26:10] mariuz@php.net
Automatic comment on behalf of mapopa@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4173a667fab0c77d1704a6b9d9a8e6ab1209ff72
Log: Fix Bug #60052 Integer returned as a 64bit integer on X64_86 for pdo_firebird
------------------------------------------------------------------------
[2015-12-03 14:25:32] mariuz@php.net
Automatic comment on behalf of mapopa@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4173a667fab0c77d1704a6b9d9a8e6ab1209ff72
Log: Fix Bug #60052 Integer returned as a 64bit integer on X64_86 for pdo_firebird
------------------------------------------------------------------------
[2015-12-03 14:16:23] mariuz@php.net
Automatic comment on behalf of mapopa@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4173a667fab0c77d1704a6b9d9a8e6ab1209ff72
Log: Fix Bug #60052 Integer returned as a 64bit integer on X64_86 for pdo_firebird
------------------------------------------------------------------------
[2015-12-02 15:35:51] matthew dot jones at ramtech dot co dot uk
Does this confirm that nobody actually uses Firebird? For a bug like this, which effects simple day
to day operations such as wanting to use a negative number, to remain open, despite a patch having
been offered, for this many years, I find incredible.
I ported code from ibase specific stuff to PDO in anticipation of having to ditch Firebird for other
reasons. This confirms its fate.
------------------------------------------------------------------------
[2015-11-04 13:52:13] bjoern dot vh at gmx dot de
I am such dissapointed: the problem is still not fixed in current PHP 7.0 RC6 :-(
Please, please fix it...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=60052
--
Edit this bug report at https://bugs.php.net/bug.php?id=60052&edit=1