Skip to content

Commit 8905724

Browse files
committed
Add scope to class entries
The idea here is to create something that can be used for other things essentially making this quite flexible. required scope: when defined, the class can only be used in the required scope, or its descendents when absolute is false lexical scope: the scope the class is defined in -- either a namespace or another class.
1 parent 0dc1c19 commit 8905724

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ struct _zend_class_entry {
164164
HashTable properties_info;
165165
HashTable constants_table;
166166

167+
zend_class_entry *required_scope;
168+
zend_class_entry *lexical_scope;
169+
bool required_scope_absolute;
170+
167171
ZEND_MAP_PTR_DEF(zend_class_mutable_data*, mutable_data);
168172
zend_inheritance_cache_entry *inheritance_cache;
169173

0 commit comments

Comments
 (0)