From: Antony Dovgal Date: Tue, 15 Aug 2006 20:30:26 +0000 (+0000) Subject: apply more correct fix for bug #38461 X-Git-Tag: RELEASE_1_0_0RC1~1942 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ea866fab4dd662a3b3a435b6a2a3174d846c93e;p=php apply more correct fix for bug #38461 --- diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 6e3c5bb06e..6a0abb77b4 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -420,7 +420,7 @@ static void zend_std_write_property(zval *object, zval *member, zval *value TSRM zval_ptr_dtor(&garbage); } } - } else if (property_info) { + } else { int setter_done = 0; zend_guard *guard; @@ -434,7 +434,7 @@ static void zend_std_write_property(zval *object, zval *member, zval *value TSRM setter_done = 1; guard->in_set = 0; } - if (!setter_done) { + if (!setter_done && property_info) { zval **foo; /* if we assign referenced variable, we should separate it */