From: Christoph M. Becker Date: Tue, 10 Dec 2019 11:46:45 +0000 (+0100) Subject: Improve error message X-Git-Tag: php-7.4.7RC1~446 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e22c3d4d976fb0a7298f32dd5e82d8a506116b5;p=php Improve error message Formerly, the error message was like: | Can't preload unlinked class MyException: Internal parent (Windows | only limitation)Exception Now it's like: | Can't preload unlinked class MyException: Windows can't link to | internal parent Exception --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index ccd300390f..df8d3c7746 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -3391,7 +3391,7 @@ static void get_unlinked_dependency(zend_class_entry *ce, const char **kind, con } #ifdef ZEND_WIN32 if (p->type == ZEND_INTERNAL_CLASS) { - *kind = "Internal parent (Windows only limitation)"; + *kind = "Windows can't link to internal parent "; *name = ZSTR_VAL(ce->parent_name); return; }