Skip to content

Commit 764c815

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix error message
2 parents 4f31bcb + 518a8f8 commit 764c815

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3862,7 +3862,8 @@ static void preload_link(void)
38623862
}
38633863
if (!(ce->ce_flags & ZEND_ACC_LINKED)) {
38643864
zend_string *key = zend_string_tolower(ce->name);
3865-
if (zend_hash_exists(EG(class_table), key)) {
3865+
if (!(ce->ce_flags & ZEND_ACC_ANON_CLASS)
3866+
&& zend_hash_exists(EG(class_table), key)) {
38663867
zend_error_at(
38673868
E_WARNING, ZSTR_VAL(ce->info.user.filename), ce->info.user.line_start,
38683869
"Can't preload already declared class %s", ZSTR_VAL(ce->name));

0 commit comments

Comments
 (0)