com php-src: Fixed guard support in magic method __set( ): Zend/zend_object_handlers.c

From: Date: Thu, 06 Mar 2014 22:03:25 +0000
Subject: com php-src: Fixed guard support in magic method __set( ): Zend/zend_object_handlers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77716@lists.php.net to get a copy of this message
Commit: 5343cd3216c21eaf5d4d7999bbe4d99bbd9a8ab9 Author: Dmitry Stogov <dmitry@zend.com> Fri, 7 Mar 2014 02:03:25 +0400 Parents: 85a5712955b5637b1d33d8c19e27133970e3e2b4 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5343cd3216c21eaf5d4d7999bbe4d99bbd9a8ab9 Log: Fixed guard support in magic method __set() Changed paths: M Zend/zend_object_handlers.c Diff: diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 1893e73..ec5c7a3 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -626,6 +626,8 @@ found: } (*guard) &= ~IN_SET; zval_ptr_dtor(object); + } else if (EXPECTED(property_info != NULL)) { + goto write_std_property; } else { if (Z_STRVAL_P(member)[0] == '\0') { if (Z_STRLEN_P(member) == 0) { @@ -636,6 +638,7 @@ found: } } } else if (EXPECTED(property_info != NULL)) { +write_std_property: /* if we assign referenced variable, we should separate it */ if (Z_REFCOUNTED_P(value)) { if (Z_ISREF_P(value)) {

« previous php.cvs (#77716) next »