Write to correct smart_str

Mixed this up during the migration to ZEND_HASH_FOREACH.
This commit is contained in:
Nikita Popov 2018-10-03 11:03:55 +02:00
parent a659d16adf
commit 1e14b7a369

View 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();