]> granicus.if.org Git - php/commitdiff
Fix gc_029_zts.phpt test
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Oct 2017 22:05:53 +0000 (23:05 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Oct 2017 22:05:53 +0000 (23:05 +0100)
ZTS and NTS now behave the same here, so reduce this back to a
single test.

Zend/tests/gc_029.phpt
Zend/tests/gc_029_zts.phpt [deleted file]

index 3873d8becd02de910573f72bda4c0a625fdc31fe..215d0e0e3bc6fe0d215dd7af7920dd90863a3214 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 GC 029: GC and destructors
---SKIPIF--
-<?php if (PHP_ZTS) { print "skip only for no-zts build"; }
 --INI--
 zend.enable_gc=1
 --FILE--
diff --git a/Zend/tests/gc_029_zts.phpt b/Zend/tests/gc_029_zts.phpt
deleted file mode 100644 (file)
index 5d16e83..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-GC 029: GC and destructors
---SKIPIF-- 
-<?php if (!PHP_ZTS) { print "skip only for zts build"; }
---INI--
-zend.enable_gc=1
---FILE--
-<?php
-class Foo {
-       public $bar;
-       public $x = array(1,2,3);
-       function __destruct() {
-               if ($this->bar !== null) {
-                       $this->x = null;
-                       unset($this->bar);
-               }
-       }
-}
-class Bar {
-       public $foo;
-        function __destruct() {
-                if ($this->foo !== null) {
-                        unset($this->foo);
-                }
-        }
-
-}
-$foo = new Foo();
-$bar = new Bar();
-$foo->bar = $bar;
-$bar->foo = $foo;
-unset($foo);
-unset($bar);
-var_dump(gc_collect_cycles());
-?>
---EXPECT--
-int(6)