blob: 92173c2579ef7cab5c2e8d7c3d36e11101a67c41 (
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
25
26
27
28
29
30
|
--TEST--
Testing register_shutdown_function() with timeout. (Bug: #21513)
--POST--
--GET--
--FILE--
<?php
ini_set('display_errors', 0);
echo "Start\n";
function boo()
{
echo "Shutdown\n";
}
register_shutdown_function("boo");
/* not necessary, just to show the error sooner */
set_time_limit(1);
/* infinite loop to simulate long processing */
for (;;) {}
echo "End\n";
?>
--EXPECT--
Start
Shutdown
|