mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
Fix error message
This commit is contained in:
parent
2badeb511b
commit
518a8f89c1
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user