Skip to content

Commit 495fb67

Browse files
committed
ensure global scope does not have a lexical scope
1 parent 366c8e2 commit 495fb67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_namespaces.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ static zend_class_entry *insert_namespace(const zend_string *name) {
8484
zend_class_entry *zend_resolve_namespace(zend_string *name) {
8585
if (global_namespace == NULL) {
8686
global_namespace = create_namespace(zend_empty_string);
87+
global_namespace->lexical_scope = NULL;
8788
zend_hash_init(&namespaces, 8, NULL, ZEND_CLASS_DTOR, 1);
8889
zend_hash_add_ptr(&namespaces, zend_empty_string, global_namespace);
8990
}

0 commit comments

Comments
 (0)