summaryrefslogtreecommitdiff
path: root/tests/lang/045.phpt
blob: e5299ae2221cb203143f9e8b9ad0621a721b3bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Timeout again inside register_shutdown_function
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
if (PHP_ZTS) die("skip hard_timeout works only on no-zts builds");
?>
--INI--
hard_timeout=1
--FILE--
<?php
set_time_limit(1);
register_shutdown_function("plop");

function plop() {
    while (true);
}
plop();
?>
===DONE===
--EXPECTF--
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d

Fatal error: Maximum execution time of 1 second exceeded in %s on line %d