1--TEST-- 2Bug object gc not working in shutdown 3--FILE-- 4<?php 5ini_set('memory_limit', '2M'); 6register_shutdown_function(function () { 7 for ($n = 1000 * 1000; $n--;) { 8 new stdClass; 9 } 10 echo "OK\n"; 11}); 12?> 13--EXPECT-- 14OK 15