Skip to content

Commit 182314c

Browse files
committed
Do not report MINIT stage internal class aliases in extensions
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
1 parent 4b1feda commit 182314c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Zend/zend_API.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,10 @@ ZEND_API zend_result zend_register_class_alias_ex(const char *name, size_t name_
32813281
if (!(ce->ce_flags & ZEND_ACC_IMMUTABLE)) {
32823282
ce->refcount++;
32833283
}
3284-
zend_observer_class_linked_notify(ce, lcname);
3284+
// avoid notifying at MINIT time
3285+
if (ce->type == ZEND_USER_CLASS) {
3286+
zend_observer_class_linked_notify(ce, lcname);
3287+
}
32853288
return SUCCESS;
32863289
}
32873290
return FAILURE;

0 commit comments

Comments
 (0)