php-src/tests/basic/timeout_variation_0.phpt
Shivam Mathur ac15486ae0
Fix CI for windows-2022
This is a continuation of GH-18927 to fix CI for windows-2022
2025-06-25 03:20:49 +05:30

24 lines
437 B
PHP

--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