summaryrefslogtreecommitdiff
path: root/ext/fbsql/php_fbsql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2002-03-19 22:36:42 +0000
committerFrank M. Kromann <fmk@php.net>2002-03-19 22:36:42 +0000
commit0201386fac70e6b7f48708442ec40ce2946f30c0 (patch)
tree2638d3d2fb5cc78983e8942fd52e155adae8f18e /ext/fbsql/php_fbsql.c
parentcd0ceca76f49b68d87853c30594d9455769c0b56 (diff)
downloadphp-git-0201386fac70e6b7f48708442ec40ce2946f30c0.tar.gz
Changing the LongInteger to return 64 bit integers as string values with all 64 bit
Diffstat (limited to 'ext/fbsql/php_fbsql.c')
-rw-r--r--ext/fbsql/php_fbsql.c8
1 files changed, 6 insertions, 2 deletions
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;