}
}
-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;
php_property_proxy_t *proxy;
/** Any parent property proxy object */
zval parent;
- /** Bond, James Bond */
- zval myself;
/** The std zend_object */
zend_object zo;
};
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
*