mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Avoid class name validation if it's already have IS_STR_CLASS_NAME_MAP_PTR flag.
This commit is contained in:
parent
1e012ecb3f
commit
c7fdf9c139
1 changed files with 1 additions and 1 deletions
|
@ -1097,7 +1097,7 @@ ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, zend_string *
|
|||
}
|
||||
|
||||
/* Verify class name before passing it to the autoloader. */
|
||||
if (!key && !zend_is_valid_class_name(name)) {
|
||||
if (!key && !ZSTR_HAS_CE_CACHE(name) && !zend_is_valid_class_name(name)) {
|
||||
zend_string_release_ex(lc_name, 0);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue