php-src/Zend/tests/object_gc_in_shutdown.phpt

15 lines
236 B
Plaintext
Raw Normal View History

--TEST--
Bug object gc not working in shutdown
--FILE--
<?php
ini_set('memory_limit', '2M');
register_shutdown_function(function () {
for ($n = 1000 * 1000; $n--;) {
new stdClass;
}
echo "OK\n";
});
?>
--EXPECT--
OK