From: Nikita Popov Date: Fri, 3 Oct 2014 22:32:32 +0000 (+0200) Subject: Fix test gc_029_zts.phpt X-Git-Tag: POST_NATIVE_TLS_MERGE^2~87^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1e21c4979f215112f9a30bc9e6e4a1ebd5a32de;p=php 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. --- 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)