]> granicus.if.org Git - php/commitdiff
Preload: Better reason message for internal parents on windows
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 4 Dec 2019 08:52:40 +0000 (09:52 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 4 Dec 2019 08:52:40 +0000 (09:52 +0100)
Related to bug #78881.

ext/opcache/ZendAccelerator.c

index 704e1c38d9b75dc02f089a44160cd5cc04ff09ac..895bf82b452181e7a72659c8856fb374aab6ee8c 100644 (file)
@@ -3389,6 +3389,13 @@ static void get_unlinked_dependency(zend_class_entry *ce, const char **kind, con
                        *name = ZSTR_VAL(ce->parent_name);
                        return;
                }
+#ifdef ZEND_WIN32
+               if (p->type == ZEND_INTERNAL_CLASS) {
+                       *kind = "Internal parent (Windows only limitation)";
+                       *name = ZSTR_VAL(ce->parent_name);
+                       return;
+               }
+#endif
                if (!(p->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
                        *kind = "Parent with unresolved initializers ";
                        *name = ZSTR_VAL(ce->parent_name);