Skip to content

Commit 7cbf31a

Browse files
committed
Preload: Better reason message for internal parents on windows
Related to bug #78881.
1 parent 6540797 commit 7cbf31a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3389,6 +3389,13 @@ static void get_unlinked_dependency(zend_class_entry *ce, const char **kind, con
33893389
*name = ZSTR_VAL(ce->parent_name);
33903390
return;
33913391
}
3392+
#ifdef ZEND_WIN32
3393+
if (p->type == ZEND_INTERNAL_CLASS) {
3394+
*kind = "Internal parent (Windows only limitation)";
3395+
*name = ZSTR_VAL(ce->parent_name);
3396+
return;
3397+
}
3398+
#endif
33923399
if (!(p->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
33933400
*kind = "Parent with unresolved initializers ";
33943401
*name = ZSTR_VAL(ce->parent_name);

0 commit comments

Comments
 (0)