mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
Write to correct smart_str
Mixed this up during the migration to ZEND_HASH_FOREACH.
This commit is contained in:
parent
a659d16adf
commit
1e14b7a369
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user