Skip to content

Commit 518a8f8

Browse files
committed
Fix error message
1 parent 2badeb5 commit 518a8f8

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
@@ -3777,7 +3777,8 @@ static void preload_link(void)
37773777
}
37783778
if (!(ce->ce_flags & ZEND_ACC_LINKED)) {
37793779
zend_string *key = zend_string_tolower(ce->name);
3780-
if (zend_hash_exists(EG(class_table), key)) {
3780+
if (!(ce->ce_flags & ZEND_ACC_ANON_CLASS)
3781+
&& zend_hash_exists(EG(class_table), key)) {
37813782
zend_error_at(
37823783
E_WARNING, ZSTR_VAL(ce->info.user.filename), ce->info.user.line_start,
37833784
"Can't preload already declared class %s", ZSTR_VAL(ce->name));

0 commit comments

Comments
 (0)