diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-11-25 14:05:43 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-11-25 14:05:43 +0300 |
commit | bb30fe9e2b86a46a167c88daaae0c650cb01afa2 (patch) | |
tree | 3e4045f70481b96dcde8d584daf43e6322ee8067 /Zend/zend_API.c | |
parent | e1da72bdf18aa3d413c5324bccfd8dc521c217e3 (diff) | |
download | php-git-bb30fe9e2b86a46a167c88daaae0c650cb01afa2.tar.gz |
Fixed bug #78868 (Calling __autoload() with incorrect EG(fake_scope) value)
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 3d94fd5986..bc67c6a1b6 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -4082,6 +4082,12 @@ ZEND_API int zend_update_static_property_ex(zend_class_entry *scope, zend_string zval *property; zend_class_entry *old_scope = EG(fake_scope); + if (UNEXPECTED(!(scope->ce_flags & ZEND_ACC_CONSTANTS_UPDATED))) { + if (UNEXPECTED(zend_update_class_constants(scope)) != SUCCESS) { + return FAILURE; + } + } + EG(fake_scope) = scope; property = zend_std_get_static_property(scope, name, 0); EG(fake_scope) = old_scope; |