summaryrefslogtreecommitdiff
path: root/Zend/zend_object_handlers.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-09-13 23:30:32 +0200
committerNikita Popov <nikic@php.net>2014-09-14 16:18:08 +0200
commiteda5ba1f8fa935b8d1b8bae9d189c6afbe833287 (patch)
treebf49e951b8928f6c14c86fc29ed41c991e6e0b46 /Zend/zend_object_handlers.c
parentebc6da5628d356bafba45f4632ecd4f3db1ad128 (diff)
downloadphp-git-eda5ba1f8fa935b8d1b8bae9d189c6afbe833287.tar.gz
Fix use of stack variable outside its block
Diffstat (limited to 'Zend/zend_object_handlers.c')
-rw-r--r--Zend/zend_object_handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index 956ff588f7..36c4efd882 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 {