From f1e21c4979f215112f9a30bc9e6e4a1ebd5a32de Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 4 Oct 2014 00:32:32 +0200 Subject: [PATCH] Fix test gc_029_zts.phpt In ZTS the default properties are duplicated (instead of copied), so the array has one lower RC than on NTS and as such gets destroyed during GC, increasing the cycle count by 3. PHP 5.6 didn't always copy default properties on ZTS, which is where the difference comes from. --- Zend/tests/gc_029_zts.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/tests/gc_029_zts.phpt b/Zend/tests/gc_029_zts.phpt index fc77e1f3bd..5d16e83348 100644 --- a/Zend/tests/gc_029_zts.phpt +++ b/Zend/tests/gc_029_zts.phpt @@ -34,4 +34,4 @@ unset($bar); var_dump(gc_collect_cycles()); ?> --EXPECT-- -int(3) +int(6) -- 2.50.1