]> granicus.if.org Git - php/commitdiff
Write to correct smart_str
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 3 Oct 2018 09:03:55 +0000 (11:03 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 3 Oct 2018 09:03:55 +0000 (11:03 +0200)
Mixed this up during the migration to ZEND_HASH_FOREACH.

ext/reflection/php_reflection.c

index 412fbaea36e3dd4321205a1df0fda7f2b3ec525c..4838b5cebc9ab34b2c6db987034e5c331504e2cc 100644 (file)
@@ -975,7 +975,7 @@ static void _extension_string(smart_str *str, zend_module_entry *module, char *i
 
                ZEND_HASH_FOREACH_PTR(EG(zend_constants), constant) {
                        if (ZEND_CONSTANT_MODULE_NUMBER(constant) == module->module_number) {
-                               _const_string(str, ZSTR_VAL(constant->name), &constant->value, indent);
+                               _const_string(&str_constants, ZSTR_VAL(constant->name), &constant->value, indent);
                                num_constants++;
                        }
                } ZEND_HASH_FOREACH_END();