]> granicus.if.org Git - php/commitdiff
MFZE1
authorAndrei Zmievski <andrei@php.net>
Fri, 17 Aug 2001 17:42:43 +0000 (17:42 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 17 Aug 2001 17:42:43 +0000 (17:42 +0000)
Zend/zend_execute.c

index dc4861e22bbd8043a06e01d57f85d980225cc9eb..159bca5b4f185507f2a440cb084c2afba677734e 100644 (file)
@@ -856,8 +856,9 @@ static void zend_fetch_property_address(znode *result, znode *op1, znode *op2, t
                return;
        }
 
-       if (container->type == IS_OBJECT
-               && Z_OBJCE_P(container)->handle_property_get) {
+       if (container->type == IS_OBJECT &&
+               (type == BP_VAR_W && Z_OBJCE_P(container)->handle_property_set ||
+                type != BP_VAR_W && Z_OBJCE_P(container)->handle_property_get)) {
                zend_overloaded_element overloaded_element;
 
                Ts[result->u.var].EA.data.overloaded_element.object = container;