From: Nikita Popov Date: Mon, 30 Oct 2017 22:05:53 +0000 (+0100) Subject: Fix gc_029_zts.phpt test X-Git-Tag: php-7.3.0alpha1~1137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02d6c259b9ba4a2ad8f54471860ac0c446b69af0;p=php Fix gc_029_zts.phpt test ZTS and NTS now behave the same here, so reduce this back to a single test. --- diff --git a/Zend/tests/gc_029.phpt b/Zend/tests/gc_029.phpt index 3873d8becd..215d0e0e3b 100644 --- a/Zend/tests/gc_029.phpt +++ b/Zend/tests/gc_029.phpt @@ -1,7 +1,5 @@ --TEST-- GC 029: GC and destructors ---SKIPIF-- -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)