diff --git a/v8js_class.cc b/v8js_class.cc index ed5f02f..8b6495a 100644 --- a/v8js_class.cc +++ b/v8js_class.cc @@ -1104,7 +1104,7 @@ static void v8js_unset_property(zval *object, zval *member ZEND_HASH_KEY_DC TSRM v8::Local jsobj = V8JS_GLOBAL(isolate)->Get(object_name_js)->ToObject(); /* Delete value from PHP JS object */ - jsobj->ForceDelete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member))); + jsobj->Delete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member))); /* Unset from PHP object */ std_object_handlers.unset_property(object, member ZEND_HASH_KEY_CC TSRMLS_CC); diff --git a/v8js_v8object_class.cc b/v8js_v8object_class.cc index 2fbb5a0..1b8dcb9 100644 --- a/v8js_v8object_class.cc +++ b/v8js_v8object_class.cc @@ -210,7 +210,7 @@ static void v8js_v8object_unset_property(zval *object, zval *member ZEND_HASH_KE v8::Local v8obj = v8::Local::New(isolate, obj->v8obj); if (v8obj->IsObject() && !v8obj->IsFunction()) { - v8obj->ToObject()->ForceDelete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member))); + v8obj->ToObject()->Delete(V8JS_SYML(Z_STRVAL_P(member), Z_STRLEN_P(member))); } } /* }}} */