From c7fdf9c139d6dc620e45bfa43cbdfd68a480caa4 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 1 Sep 2021 16:02:11 +0300 Subject: [PATCH] Avoid class name validation if it's already have IS_STR_CLASS_NAME_MAP_PTR flag. --- Zend/zend_execute_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 2511e40c19d..3a49f1a3f31 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -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; }