]> granicus.if.org Git - php/commitdiff
Remove unused BG(str_ebuf) global
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Aug 2020 08:12:28 +0000 (10:12 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Aug 2020 08:14:41 +0000 (10:14 +0200)
Also change BG(strtok_len) to size_t. This stores a string length,
so it should be size_t rather than zend_ulong.

ext/standard/basic_functions.h

index 8308904e508756f2272f42384347461220a37025..6c0eb5c59edc0fbcdd29a83ca2c0bde3c3d90a2c 100644 (file)
@@ -65,8 +65,7 @@ typedef struct _php_basic_globals {
        zend_bool locale_changed;   /* locale was changed and has to be restored */
        char *strtok_last;
        char strtok_table[256];
-       zend_ulong strtok_len;
-       char str_ebuf[40];
+       size_t strtok_len;
        zend_fcall_info array_walk_fci;
        zend_fcall_info_cache array_walk_fci_cache;
        zend_fcall_info user_compare_fci;