We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8030bc0 commit b928ee1Copy full SHA for b928ee1
Zend/zend_inheritance.c
@@ -203,7 +203,12 @@ static bool class_visible(zend_class_entry *ce) {
203
static zend_class_entry *lookup_class(
204
zend_class_entry *scope, zend_string *name, bool register_unresolved) {
205
uint32_t flags = ZEND_FETCH_CLASS_ALLOW_UNLINKED | ZEND_FETCH_CLASS_NO_AUTOLOAD;
206
- zend_class_entry *ce = zend_lookup_class_ex(name, NULL, flags);
+ zend_class_entry *ce = NULL;
207
+
208
+ if (EG(class_table)) {
209
+ ce = zend_lookup_class_ex(name, NULL, flags);
210
+ }
211
212
if (!CG(in_compilation)) {
213
if (ce) {
214
return ce;
0 commit comments