mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Accept zend_object* in zend_unset_property
This commit is contained in:
parent
978b7de244
commit
01cbb5967c
4 changed files with 5 additions and 5 deletions
|
@ -1185,7 +1185,7 @@ static zval* get_zval_property(zval* object, char* name, zval *rv)
|
|||
static void unset_zval_property(zval* object, char* name)
|
||||
{
|
||||
if (Z_TYPE_P(object) == IS_OBJECT) {
|
||||
zend_unset_property(Z_OBJCE_P(object), object, name, strlen(name));
|
||||
zend_unset_property(Z_OBJCE_P(object), Z_OBJ_P(object), name, strlen(name));
|
||||
} else if (Z_TYPE_P(object) == IS_ARRAY) {
|
||||
zend_hash_str_del(Z_ARRVAL_P(object), name, strlen(name));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue