File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #78335: Static properties containing cycles report as leak (internal class variant)
3
+ --FILE--
4
+ <?php
5
+
6
+ $ foo = [&$ foo ];
7
+ _ZendTestClass::$ _StaticProp = $ foo ;
8
+
9
+ ?>
10
+ ===DONE===
11
+ --EXPECT--
12
+ ===DONE===
Original file line number Diff line number Diff line change @@ -292,9 +292,6 @@ void shutdown_executor(void) /* {{{ */
292
292
} ZEND_HASH_FOREACH_END ();
293
293
ZEND_HASH_REVERSE_FOREACH_VAL (EG (class_table ), zv ) {
294
294
zend_class_entry * ce = Z_PTR_P (zv );
295
- if (ce -> type == ZEND_INTERNAL_CLASS ) {
296
- break ;
297
- }
298
295
if (ce -> default_static_members_count ) {
299
296
zend_cleanup_internal_class_data (ce );
300
297
}
@@ -395,8 +392,6 @@ void shutdown_executor(void) /* {{{ */
395
392
} ZEND_HASH_FOREACH_END_DEL ();
396
393
}
397
394
398
- zend_cleanup_internal_classes ();
399
-
400
395
while (EG (symtable_cache_ptr ) > EG (symtable_cache )) {
401
396
EG (symtable_cache_ptr )-- ;
402
397
zend_hash_destroy (* EG (symtable_cache_ptr ));
You can’t perform that action at this time.
0 commit comments