Merge branch 'PHP-8.2'

This commit is contained in:
Bob Weinand 2022-11-09 16:36:50 +01:00
commit 2cab4874ad
4 changed files with 57 additions and 1 deletions

View file

@ -3281,7 +3281,10 @@ ZEND_API zend_result zend_register_class_alias_ex(const char *name, size_t name_
if (!(ce->ce_flags & ZEND_ACC_IMMUTABLE)) {
ce->refcount++;
}
zend_observer_class_linked_notify(ce, lcname);
// avoid notifying at MINIT time
if (ce->type == ZEND_USER_CLASS) {
zend_observer_class_linked_notify(ce, lcname);
}
return SUCCESS;
}
return FAILURE;