Merge branch 'PHP-7.1'

* PHP-7.1:
  finish 7.1 port
This commit is contained in:
Anatol Belski 2016-10-12 18:33:28 +02:00
commit 10fe10ee1f

View file

@ -3889,9 +3889,9 @@ 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, zval *object, const char *name, size_t name_length) /* {{{ */
{ {
zval property; zval property;
zend_class_entry *old_scope = EG(scope); zend_class_entry *old_scope = EG(fake_scope);
EG(scope) = scope; EG(fake_scope) = scope;
if (!Z_OBJ_HT_P(object)->unset_property) { if (!Z_OBJ_HT_P(object)->unset_property) {
zend_error_noreturn(E_CORE_ERROR, "Property %s of class %s cannot be unset", name, ZSTR_VAL(Z_OBJCE_P(object)->name)); zend_error_noreturn(E_CORE_ERROR, "Property %s of class %s cannot be unset", name, ZSTR_VAL(Z_OBJCE_P(object)->name));
@ -3900,7 +3900,7 @@ ZEND_API void zend_unset_property(zend_class_entry *scope, zval *object, const c
Z_OBJ_HT_P(object)->unset_property(object, &property, 0); Z_OBJ_HT_P(object)->unset_property(object, &property, 0);
zval_ptr_dtor(&property); zval_ptr_dtor(&property);
EG(scope) = old_scope; EG(fake_scope) = old_scope;
} }
/* }}} */ /* }}} */