zend_read_property API update
authorMichael Wallner <mike@php.net>
Thu, 22 Jan 2015 10:12:18 +0000 (11:12 +0100)
committerMichael Wallner <mike@php.net>
Thu, 22 Jan 2015 10:12:18 +0000 (11:12 +0100)
php_propro.c

index d0a69c6e422a0f84e43f01270ef55aaeeac91626..ba854e62d0ac8d7f6312765bda3b37a6ddc5e968 100644 (file)
@@ -247,7 +247,7 @@ static zval *get_parent_proxied_value(zval *object, zval *return_value)
 
 static zval *get_proxied_value(zval *object, zval *return_value)
 {
-       zval *hash_value, *ref;
+       zval *hash_value, *ref, prop_tmp;
        php_property_proxy_object_t *obj;
 
        obj = get_propro(object);
@@ -271,7 +271,7 @@ static zval *get_proxied_value(zval *object, zval *return_value)
                switch (Z_TYPE_P(ref)) {
                case IS_OBJECT:
                        RETVAL_ZVAL(zend_read_property(Z_OBJCE_P(ref), ref,
-                                       obj->proxy->member->val, obj->proxy->member->len, 0),
+                                       obj->proxy->member->val, obj->proxy->member->len, 0, &prop_tmp),
                                        0, 0);
                        break;