Skip to content

Commit 447d143

Browse files
committed
Fixed bug GH-13193 again
Closes GH-13193.
1 parent 7e6a368 commit 447d143

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ PHP NEWS
77
(Arnaud)
88
. Fixed bug GH-15367 (dl() of module with aliased class crashes in shutdown).
99
(Arnaud)
10+
. Fixed bug GH-13193 again (Significant performance degradation in 'foreach').
11+
(nielsdos)
1012

1113
- DOM:
1214
. Fix weird unpack behaviour in DOM. (nielsdos)

Zend/zend_gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ ZEND_API int zend_gc_collect_cycles(void)
17831783
bool did_rerun_gc = 0;
17841784

17851785
zend_hrtime_t start_time = zend_hrtime();
1786-
if (GC_G(num_roots) && GC_G(gc_active)) {
1786+
if (GC_G(num_roots) && !GC_G(gc_active)) {
17871787
zend_gc_remove_root_tmpvars();
17881788
}
17891789

0 commit comments

Comments
 (0)