mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
return zval *, to make it useful for read_property
This commit is contained in:
parent
b372b86b89
commit
7cf92e79ed
2 changed files with 3 additions and 5 deletions
|
@ -215,7 +215,7 @@ ZEND_API void zend_objects_proxy_clone(zend_proxy_object *object, zend_proxy_obj
|
|||
zval_add_ref(&(*object_clone)->object);
|
||||
}
|
||||
|
||||
ZEND_API zval **zend_object_create_proxy(zval *object, zval *member TSRMLS_DC)
|
||||
ZEND_API zval *zend_object_create_proxy(zval *object, zval *member TSRMLS_DC)
|
||||
{
|
||||
zend_proxy_object *pobj = emalloc(sizeof(zend_proxy_object));
|
||||
zval *retval, **pretval;
|
||||
|
@ -229,10 +229,8 @@ ZEND_API zval **zend_object_create_proxy(zval *object, zval *member TSRMLS_DC)
|
|||
retval->type = IS_OBJECT;
|
||||
Z_OBJ_HANDLE_P(retval) = zend_objects_store_put(pobj, NULL, (zend_objects_free_object_storage_t) zend_objects_proxy_free_storage, (zend_objects_store_clone_t) zend_objects_proxy_clone TSRMLS_CC);
|
||||
Z_OBJ_HT_P(retval) = &zend_object_proxy_handlers;
|
||||
pretval = emalloc(sizeof(zval *));
|
||||
*pretval = retval;
|
||||
|
||||
return pretval;
|
||||
return retval;
|
||||
}
|
||||
|
||||
ZEND_API void zend_object_proxy_set(zval **property, zval *value TSRMLS_DC)
|
||||
|
|
|
@ -71,7 +71,7 @@ ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects
|
|||
|
||||
#define ZEND_OBJECTS_STORE_HANDLERS zend_objects_store_add_ref, zend_objects_store_del_ref, zend_objects_store_clone_obj
|
||||
|
||||
ZEND_API zval **zend_object_create_proxy(zval *object, zval *member TSRMLS_DC);
|
||||
ZEND_API zval *zend_object_create_proxy(zval *object, zval *member TSRMLS_DC);
|
||||
|
||||
ZEND_API zend_object_handlers *zend_get_std_object_handlers();
|
||||
END_EXTERN_C()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue