Bug #60052 [Com]: Integer returned as a 64bit integer on X64_86
| From: | slavb18 at gmail dot com | Date: | Fri, 04 Dec 2015 10:34:22 +0000 |
| Subject: | Bug #60052 [Com]: Integer returned as a 64bit integer on X64_86 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197585@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60052&edit=1
ID: 60052
Comment by: slavb18 at gmail dot com
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:
we are using php5-bug60052.patch with single change since 2013-09-26, no problems
Previous Comments:
------------------------------------------------------------------------
[2015-12-04 10:09:09] matthew dot jones at ramtech dot co dot uk
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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