diff options
author | Joe Watkins <krakjoe@php.net> | 2019-02-27 09:17:09 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-02-27 09:17:09 +0100 |
commit | 1ca9d818b8405159ef96cb974a21714881e1146c (patch) | |
tree | 9ee28d05553efd8dfc4ac4bd21c1ba871be38976 /ext/reflection/php_reflection.c | |
parent | d303225c3a463cb0a7dabb51234adf684de13fa5 (diff) | |
download | php-git-1ca9d818b8405159ef96cb974a21714881e1146c.tar.gz |
Fix #77673 ReflectionClass::getDefaultProperties returns spooky array
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 bfbe88f49a..20c23f1a2e 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3761,7 +3761,7 @@ static void add_class_vars(zend_class_entry *ce, int statics, zval *return_value } else if (!statics && (prop_info->flags & ZEND_ACC_STATIC) == 0) { prop = &ce->default_properties_table[OBJ_PROP_TO_NUM(prop_info->offset)]; } - if (!prop) { + if (!prop || (prop_info->type && Z_ISUNDEF_P(prop))) { continue; } |