com php-src: Fix use of stack variable outside its block: Zend/zend_object_handlers.c

From: Date: Sun, 14 Sep 2014 14:18:08 +0000
Subject: com php-src: Fix use of stack variable outside its block: Zend/zend_object_handlers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81601@lists.php.net to get a copy of this message
Commit: eda5ba1f8fa935b8d1b8bae9d189c6afbe833287 Author: Nikita Popov <nikic@php.net> Sat, 13 Sep 2014 23:30:32 +0200 Parents: ebc6da5628d356bafba45f4632ecd4f3db1ad128 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=eda5ba1f8fa935b8d1b8bae9d189c6afbe833287 Log: Fix use of stack variable outside its block Changed paths: M Zend/zend_object_handlers.c Diff: diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 956ff58..36c4efd 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -659,12 +659,12 @@ found: } } } else if (EXPECTED(property_info != NULL)) { + zval tmp; + write_std_property: - /* if we assign referenced variable, we should separate it */ if (Z_REFCOUNTED_P(value)) { if (Z_ISREF_P(value)) { - zval tmp; - + /* if we assign referenced variable, we should separate it */ ZVAL_DUP(&tmp, Z_REFVAL_P(value)); value = &tmp; } else {

« previous php.cvs (#81601) next »