com php-src: Write to correct smart_str: ext/reflection/p hp_reflection.c

From: Date: Wed, 03 Oct 2018 09:03:55 +0000
Subject: com php-src: Write to correct smart_str: ext/reflection/p hp_reflection.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103320@lists.php.net to get a copy of this message
Commit: 1e14b7a369108ea89cee2c939719297b930d6d9d Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 3 Oct 2018 11:03:55 +0200 Parents: a659d16adf996344d8c233b49f6077641d3800b6 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1e14b7a369108ea89cee2c939719297b930d6d9d Log: Write to correct smart_str Mixed this up during the migration to ZEND_HASH_FOREACH. Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 412fbae..4838b5c 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();

« previous php.cvs (#103320) next »