File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1121,6 +1121,18 @@ zend_class_entry *zend_persist_class_entry(zend_class_entry *orig_ce)
11211121 return ce ;
11221122}
11231123
1124+ void zend_update_required_scope (zend_class_entry * ce )
1125+ {
1126+ if (ce -> required_scope ) {
1127+ zend_class_entry * required_scope = ce -> required_scope ;
1128+
1129+ zend_class_entry * r = zend_shared_alloc_get_xlat_entry (required_scope );
1130+ if (r ) {
1131+ ce -> required_scope = r ;
1132+ }
1133+ }
1134+ }
1135+
11241136void zend_update_parent_ce (zend_class_entry * ce )
11251137{
11261138 if (ce -> ce_flags & ZEND_ACC_LINKED ) {
@@ -1294,6 +1306,7 @@ static void zend_accel_persist_class_table(HashTable *class_table)
12941306 if (EXPECTED (Z_TYPE (p -> val ) != IS_ALIAS_PTR )) {
12951307 ce = Z_PTR (p -> val );
12961308 zend_update_parent_ce (ce );
1309+ zend_update_required_scope (ce );
12971310 }
12981311 } ZEND_HASH_FOREACH_END ();
12991312#ifdef HAVE_JIT
You can’t perform that action at this time.
0 commit comments