com php-src: finish 7.1 port: Zend/zend_API.c

From: Date: Thu, 13 Oct 2016 23:44:31 +0000
Subject: com php-src: finish 7.1 port: Zend/zend_API.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95077@lists.php.net to get a copy of this message
Commit: a6715786a7e19b4c3deb0b366e21bbf49e40bf4f Author: Anatol Belski <ab@php.net> Wed, 12 Oct 2016 18:31:46 +0200 Parents: 54003ab6631b489af54631a548597e8bd599b266 Branches: PHP-7.1 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a6715786a7e19b4c3deb0b366e21bbf49e40bf4f Log: finish 7.1 port (cherry picked from commit f1fff032fcdb09a56c2fd763d1ee160106381586) Changed paths: M Zend/zend_API.c Diff: diff --git a/Zend/zend_API.c b/Zend/zend_API..c index a71aca8..2479cf0 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -3889,9 +3889,9 @@ ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, c ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length) /* {{{ */ { zval property; - zend_class_entry *old_scope = EG(scope); + zend_class_entry *old_scope = EG(fake_scope); - EG(scope) = scope; + EG(fake_scope) = scope; if (!Z_OBJ_HT_P(object)->unset_property) { zend_error_noreturn(E_CORE_ERROR, "Property %s of class %s cannot be unset", name, ZSTR_VAL(Z_OBJCE_P(object)->name)); @@ -3900,7 +3900,7 @@ ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const c Z_OBJ_HT_P(object)->unset_property(object, &property, 0); zval_ptr_dtor(&property); - EG(scope) = old_scope; + EG(fake_scope) = old_scope; } /* }}} */

« previous php.cvs (#95077) next »