summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_035.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-08-01 12:55:39 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-08-13 14:53:53 +0200
commit60a7e60b61b8e4a3d455974c83f76a26546ce117 (patch)
tree01e5421b60f4dfeeb361f1caf4d35c49bcf7ff38 /Zend/tests/gc_035.phpt
parentfdfc7ea9320c25ccca519095642bade6784caf48 (diff)
downloadphp-git-60a7e60b61b8e4a3d455974c83f76a26546ce117.tar.gz
Fixed bug #72530
For objects with destructors, we will now only call the destructor in the initial GC run, and remove any nested data. The object is marked purple so it will be considered a root for the next GC run, at which point it will be fully destroyed, if possible. GC counts change on a number of tests, as the objects now get destroyed later.
Diffstat (limited to 'Zend/tests/gc_035.phpt')
-rw-r--r--Zend/tests/gc_035.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/tests/gc_035.phpt b/Zend/tests/gc_035.phpt
index 177c3101f9..187af9108b 100644
--- a/Zend/tests/gc_035.phpt
+++ b/Zend/tests/gc_035.phpt
@@ -22,5 +22,5 @@ var_dump(gc_collect_cycles());
var_dump(gc_collect_cycles());
--EXPECT--
int(0)
-int(2)
int(0)
+int(2)