diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-10-03 11:03:55 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-10-03 11:03:55 +0200 |
commit | 1e14b7a369108ea89cee2c939719297b930d6d9d (patch) | |
tree | bf8a3397bacbef4a9f33ff6c9b618627a96e1cdd /ext/reflection/php_reflection.c | |
parent | a659d16adf996344d8c233b49f6077641d3800b6 (diff) | |
download | php-git-1e14b7a369108ea89cee2c939719297b930d6d9d.tar.gz |
Write to correct smart_str
Mixed this up during the migration to ZEND_HASH_FOREACH.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 412fbaea36..4838b5cebc 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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(); |