Skip to content

Commit 1e14b7a

Browse files
committed
Write to correct smart_str
Mixed this up during the migration to ZEND_HASH_FOREACH.
1 parent a659d16 commit 1e14b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ static void _extension_string(smart_str *str, zend_module_entry *module, char *i
975975

976976
ZEND_HASH_FOREACH_PTR(EG(zend_constants), constant) {
977977
if (ZEND_CONSTANT_MODULE_NUMBER(constant) == module->module_number) {
978-
_const_string(str, ZSTR_VAL(constant->name), &constant->value, indent);
978+
_const_string(&str_constants, ZSTR_VAL(constant->name), &constant->value, indent);
979979
num_constants++;
980980
}
981981
} ZEND_HASH_FOREACH_END();

0 commit comments

Comments
 (0)