1--TEST--
2Timeout within while loop
3--SKIPIF--
4<?php
5if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6?>
7--FILE--
8<?php
9
10set_time_limit(1);
11
12$x = true;
13$y = 0;
14while ($x) {
15    $y++;
16}
17
18?>
19never reached here
20--EXPECTF--
21Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
22