1--TEST-- 2Timeout again inside register_shutdown_function 3--SKIPIF-- 4<?php 5if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); 6if (PHP_ZTS) die("skip hard_timeout works only on no-zts builds"); 7?> 8--INI-- 9hard_timeout=1 10--FILE-- 11<?php 12set_time_limit(1); 13register_shutdown_function("plop"); 14 15function plop() { 16 while (true); 17} 18plop(); 19?> 20===DONE=== 21--EXPECTF-- 22Fatal error: Maximum execution time of 1 second exceeded in %s on line %d 23 24Fatal error: Maximum execution time of 1 second exceeded in %s on line %d 25