1 2 3 4 5 6 7 8 9 10 11 12 13 14
--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