mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
c206c742d6
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.
14 lines
175 B
PHP
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===
|