current PHP7 engine already has fixed property access container zval
authorMichael Wallner <mike@php.net>
Mon, 15 Jun 2015 14:38:24 +0000 (16:38 +0200)
committerMichael Wallner <mike@php.net>
Mon, 15 Jun 2015 14:38:24 +0000 (16:38 +0200)
php_propro.c
php_propro.h

index ac4d973dfabced6ad519b9d67d151eeffcf7c02a..29627bad4b03a42a246118f3ead4f3bdd6e704f8 100644 (file)
@@ -50,18 +50,6 @@ void php_property_proxy_free(php_property_proxy_t **proxy)
        }
 }
 
-zval *php_property_proxy_zval(zval *container, zend_string *member)
-{
-       php_property_proxy_t *proxy;
-       php_property_proxy_object_t *proxy_obj;
-
-       proxy = php_property_proxy_init(container, member);
-       proxy_obj = php_property_proxy_object_new_ex(NULL, proxy);
-
-       ZVAL_OBJ(&proxy_obj->myself, &proxy_obj->zo);
-       return &proxy_obj->myself;
-}
-
 static zend_class_entry *php_property_proxy_class_entry;
 static zend_object_handlers php_property_proxy_object_handlers;
 
index 3c8c9f94137c13ee9665f937004d3c917c443800..57bf845875e7ca7cc42ed0961e28c49d40de81bb 100644 (file)
@@ -87,8 +87,6 @@ struct php_property_proxy_object {
        php_property_proxy_t *proxy;
        /** Any parent property proxy object */
        zval parent;
-       /** Bond, James Bond */
-       zval myself;
        /** The std zend_object */
        zend_object zo;
 };
@@ -99,18 +97,6 @@ PHP_PROPRO_API php_property_proxy_object_t *php_property_proxy_object_new_ex(
 
 PHP_PROPRO_API zend_object *php_property_proxy_object_new(zend_class_entry *ce);
 
-/**
- * Create a property proxy as zval suitable to return from the property handler.
- *
- * Wrapper for php_property_proxy_init() and php_property_proxy_object_new_ex()
- * for use within a custom property handler.
- *
- * @param container the container holding the property
- * @param member the name of the proxied property
- * @return the new property proxy as zval
- */
-PHP_PROPRO_API zval *php_property_proxy_zval(zval *container, zend_string *member);
-
 /**
  * Create a property proxy
  *