php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60052
Patch php5-bug60052.patch revision 2013-09-26 06:21 UTC by slavb18 at gmail dot com
Patch integer_x86_64.patch revision 2011-10-13 13:03 UTC by m dot vanduren at jonker dot nl

Patch integer_x86_64.patch for PDO Firebird Bug #60052

Patch version 2011-10-13 13:03 UTC

Return to Bug #60052 | Download this patch
Patch Revisions:

Developer: m.vanduren@jonker.nl

--- ./firebird_statement.c	2010-01-03 10:23:27.000000000 +0100
+++ ./firebird_statement_new.c	2011-10-13 14:34:16.000000000 +0200
@@ -336,11 +336,11 @@
 					break;
 				case SQL_LONG:
 					*ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
-					*len = slprintf(*ptr, CHAR_BUF_LEN, "%ld", *(ISC_LONG*)var->sqldata);
+					*len = slprintf(*ptr, CHAR_BUF_LEN, "%d", *(ISC_LONG*)var->sqldata);
 					break;
 				case SQL_INT64:
 					*ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
-					*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);
 					break;
 				case SQL_FLOAT:
 					*ptr = FETCH_BUF(S->fetch_buf[colno], char, CHAR_BUF_LEN, NULL);
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 19:01:51 2014 UTC