summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-10-04 00:32:32 +0200
committerNikita Popov <nikic@php.net>2014-10-04 00:37:15 +0200
commitf1e21c4979f215112f9a30bc9e6e4a1ebd5a32de (patch)
tree37c5f05804e5ac1cec3aeeae9d3535edff321c47
parent2fd7d60ea06aa07b99dc219655be7ab42b7e2e16 (diff)
downloadphp-git-f1e21c4979f215112f9a30bc9e6e4a1ebd5a32de.tar.gz
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.
-rw-r--r--Zend/tests/gc_029_zts.phpt2
1 files changed, 1 insertions, 1 deletions
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)