com php-src: Fix get_unresolved_initializer for static props: ext/opcache/ZendAccelerator.c

From: Date: Fri, 22 Feb 2019 10:25:52 +0000
Subject: com php-src: Fix get_unresolved_initializer for static props: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104830@lists.php.net to get a copy of this message
Commit: bb75a537719c3b749548e4a4d133a7b5b778b468 Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 22 Feb 2019 11:23:16 +0100 Parents: 1c9fe3042560b63b35daefbe57306c4164a672af Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bb75a537719c3b749548e4a4d133a7b5b778b468 Log: Fix get_unresolved_initializer for static props For static props the offset is a simple index. Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 48a5992..de6b86f 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -3275,7 +3275,7 @@ static void get_unresolved_initializer(zend_class_entry *ce, const char **kind, ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->properties_info, key, prop) { zval *val; if (prop->flags & ZEND_ACC_STATIC) { - val = &ce->default_static_members_table[OBJ_PROP_TO_NUM(prop->offset)]; + val = &ce->default_static_members_table[prop->offset]; } else { val = &ce->default_properties_table[OBJ_PROP_TO_NUM(prop->offset)]; }

« previous php.cvs (#104830) next »