php-src/Zend/tests/bug79900.phpt
Nikita Popov c206c742d6 Fix bug #79900
Run debug build shutdown GC regardless even if GC has been disabled.
Of course, this only does something meaningful if the GC has been
disabled at runtime and root collection is still enabled. We cannot
prevent leaks if GC is disabled completely.
2020-07-29 15:27:48 +02:00

14 lines
175 B
PHP

--TEST--
Bug #79900: Memory leaks reported if GC disabled at runtime
--FILE--
<?php
gc_disable();
$obj = new stdClass;
$obj->obj = $obj;
?>
===DONE===
--EXPECT--
===DONE===