]> granicus.if.org Git - php/commitdiff
MFH: add I64 support to spprintf()
authorAntony Dovgal <tony2001@php.net>
Fri, 3 Aug 2007 09:48:58 +0000 (09:48 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 3 Aug 2007 09:48:58 +0000 (09:48 +0000)
main/spprintf.c

index 88e87f1dcd5d8fdf4e621486f4a12ee83c667fa7..2bc3cb96fd3c0df61ff3c1eb5d62e497f075b289 100644 (file)
@@ -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