summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-08-03 09:48:58 +0000
committerAntony Dovgal <tony2001@php.net>2007-08-03 09:48:58 +0000
commit57daf22d8fef6a5af3048509db101048ddeffbe7 (patch)
tree982ca331676a9fdc3d1223852548afa8be9f41bf
parent77f9d22a0e7d08f2853f4dbbf337288b9e71acd4 (diff)
downloadphp-git-57daf22d8fef6a5af3048509db101048ddeffbe7.tar.gz
MFH: add I64 support to spprintf()
-rw-r--r--main/spprintf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/spprintf.c b/main/spprintf.c
index 88e87f1dcd..2bc3cb96fd 100644
--- a/main/spprintf.c
+++ b/main/spprintf.c
@@ -302,6 +302,16 @@ static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap)
fmt++;
modifier = LM_LONG_DOUBLE;
break;
+ case 'I':
+ fmt++;
+#if SIZEOF_LONG_LONG
+ if (*fmt == '6' && *(fmt+1) == '4') {
+ fmt += 2;
+ modifier = LM_LONG_LONG;
+ } else
+#endif
+ modifier = LM_LONG;
+ break;
case 'l':
fmt++;
#if SIZEOF_LONG_LONG