From: Dmitry Stogov Date: Tue, 10 Dec 2019 19:17:10 +0000 (+0300) Subject: Fix error message X-Git-Tag: php-7.4.7RC1~441 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=518a8f89c1f67c8869f54b374ce90d1cd0135d9b;p=php Fix error message --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 0b66ab6e6e..055ab1bd25 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -3777,7 +3777,8 @@ static void preload_link(void) } if (!(ce->ce_flags & ZEND_ACC_LINKED)) { zend_string *key = zend_string_tolower(ce->name); - if (zend_hash_exists(EG(class_table), key)) { + if (!(ce->ce_flags & ZEND_ACC_ANON_CLASS) + && zend_hash_exists(EG(class_table), key)) { zend_error_at( E_WARNING, ZSTR_VAL(ce->info.user.filename), ce->info.user.line_start, "Can't preload already declared class %s", ZSTR_VAL(ce->name));