]> granicus.if.org Git - php/commitdiff
Fix test gc_029_zts.phpt
authorNikita Popov <nikic@php.net>
Fri, 3 Oct 2014 22:32:32 +0000 (00:32 +0200)
committerNikita Popov <nikic@php.net>
Fri, 3 Oct 2014 22:37:15 +0000 (00:37 +0200)
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

index fc77e1f3bd90094f4fddfa5317b9e13b20a3c339..5d16e83348271fcf9d21c0fa567cda0550a782e8 100644 (file)
@@ -34,4 +34,4 @@ unset($bar);
 var_dump(gc_collect_cycles());
 ?>
 --EXPECT--
-int(3)
+int(6)