diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-11-06 14:50:03 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-11-06 14:50:03 +0300 |
commit | 75041379a6e73b22c094c3c9c7878a1c4e439725 (patch) | |
tree | 7266d09071014b1a0b52e01113a407450b987d8e /ext/reflection | |
parent | 6b8328de740ce0bc116f322be5193b6b7b83927f (diff) | |
download | php-git-75041379a6e73b22c094c3c9c7878a1c4e439725.tar.gz |
Improved object property access.
Diffstat (limited to 'ext/reflection')
-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 3d44c35b62..b972c2899c 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3363,7 +3363,7 @@ static void add_class_vars(zend_class_entry *ce, int statics, zval *return_value if (statics && (prop_info->flags & ZEND_ACC_STATIC) != 0) { prop = &ce->default_static_members_table[prop_info->offset]; } else if (!statics && (prop_info->flags & ZEND_ACC_STATIC) == 0) { - prop = &ce->default_properties_table[prop_info->offset]; + prop = &ce->default_properties_table[OBJ_PROP_TO_NUM(prop_info->offset)]; } } if (!prop) { |