From: Frank M. Kromann Date: Tue, 19 Mar 2002 22:36:42 +0000 (+0000) Subject: Changing the LongInteger to return 64 bit integers as string values with all 64 bit X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0201386fac70e6b7f48708442ec40ce2946f30c0;p=php Changing the LongInteger to return 64 bit integers as string values with all 64 bit --- diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index 4d42accf3d..3c8656353e 100644 --- a/ext/fbsql/php_fbsql.c +++ b/ext/fbsql/php_fbsql.c @@ -2272,9 +2272,13 @@ void phpfbColumnAsString (PHPFBResult* result, int column, void* data , int* len case FB_LongInteger: { - long v = *((long*)data); + FBLongInteger v = *((FBLongInteger*)data); char b[128]; - sprintf(b, "%li", v); +#ifdef PHP_WIN32 + sprintf(b, "%i64", v); +#else + sprintf(b, "%ll", v); +#endif phpfbestrdup(b, length, value); } break;