mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
15 lines
236 B
Plaintext
15 lines
236 B
Plaintext
|
--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
|