← Back
Editing: timeout_variation_0.phpt
--TEST-- Timeout within while loop --SKIPIF-- <?php if (PHP_OS_FAMILY === 'Windows' && version_compare(PHP_VERSION, '8.4', '<')) { die("xfail fails on Windows Server 2022 and newer."); } if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- <?php set_time_limit(1); $x = true; $y = 0; while ($x) { $y++; } ?> never reached here --EXPECTF-- Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
Save File
Cancel