]> granicus.if.org Git - php/commitdiff
Drop the custom 'v' format from snprintf custom implementation.
authorGeorge Peter Banyard <girgias@php.net>
Mon, 20 Jan 2020 22:17:24 +0000 (23:17 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Tue, 21 Jan 2020 12:18:13 +0000 (13:18 +0100)
Extensions should instead use the standard 's' format.

Closes GH-5100

UPGRADING.INTERNALS
main/snprintf.c

index 62492bab39fe824f42959d2979135d5fbe57c44d..1714e26eb07054af8701f961598c548166b6d8c4 100644 (file)
@@ -86,6 +86,9 @@ PHP 8.0 INTERNALS UPGRADE NOTES
      Use the ZEND_LONG_FMT, ZEND_ULONG_FMT and ZEND_XLONG_FMT macros defined in
      php-src/Zend/zend_long.h
 
+     The 'v' format from the custom snprintf implementation has been removed.
+     Use the standard 's' format instead.
+
 ========================
 2. Build system changes
 ========================
index 2dd2aa276fa4d9871c2d8e952e52c85712377a51..4c20367ea3089e32587d7d859b65617e2f778372 100644 (file)
@@ -961,7 +961,6 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) /
 
 
                                case 's':
-                               case 'v':
                                        s = va_arg(ap, char *);
                                        if (s != NULL) {
                                                s_len = strlen(s);