summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-08-07 15:17:59 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-08-07 16:40:27 +0200
commit01cbb5967cdc1c8844df81b3b2b97a65b5ecbb9b (patch)
treebd5469c92581b883ed70665c6b0e31602b87d144 /Zend/zend_API.c
parent978b7de244197ae7b7a7c2a5d7e1dd790254455f (diff)
downloadphp-git-01cbb5967cdc1c8844df81b3b2b97a65b5ecbb9b.tar.gz
Accept zend_object* in zend_unset_property
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index bd45b093cf..7a13d78c6a 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -4007,7 +4007,7 @@ ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, c
}
/* }}} */
-ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length) /* {{{ */
+ZEND_API void zend_unset_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length) /* {{{ */
{
zend_string *property;
zend_class_entry *old_scope = EG(fake_scope);
@@ -4015,7 +4015,7 @@ ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const c
EG(fake_scope) = scope;
property = zend_string_init(name, name_length, 0);
- Z_OBJ_HT_P(object)->unset_property(Z_OBJ_P(object), property, 0);
+ object->handlers->unset_property(object, property, 0);
zend_string_release_ex(property, 0);
EG(fake_scope) = old_scope;