summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-07-26 12:58:07 +0300
committerDmitry Stogov <dmitry@zend.com>2018-07-26 12:58:07 +0300
commitab8094c666048b747481df0b9da94e08cadc4160 (patch)
tree3ac94d92f4b07fe2d1d98db81203c85572bea82c /ext/reflection/php_reflection.c
parent7a41e4c0d0ddb2cfb91e31b210d7bceb158d2ab4 (diff)
downloadphp-git-ab8094c666048b747481df0b9da94e08cadc4160.tar.gz
Pack zend_constant.flags and zend_constant.module_number into reserved space inside zend_constant.value.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 87220dd7d3..862936d81c 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -926,7 +926,7 @@ static int _extension_const_string(zval *el, int num_args, va_list args, zend_ha
struct _zend_module_entry *module = va_arg(args, struct _zend_module_entry*);
int *num_classes = va_arg(args, int*);
- if (constant->module_number == module->module_number) {
+ if (ZEND_CONSTANT_MODULE_NUMBER(constant) == module->module_number) {
_const_string(str, ZSTR_VAL(constant->name), &constant->value, indent);
(*num_classes)++;
}
@@ -5696,7 +5696,7 @@ static int _addconstant(zval *el, int num_args, va_list args, zend_hash_key *has
zval *retval = va_arg(args, zval*);
int number = va_arg(args, int);
- if (number == constant->module_number) {
+ if (number == ZEND_CONSTANT_MODULE_NUMBER(constant)) {
ZVAL_COPY_OR_DUP(&const_val, &constant->value);
zend_hash_update(Z_ARRVAL_P(retval), constant->name, &const_val);
}