summaryrefslogtreecommitdiff
path: root/tests/func/005a.phpt
blob: f7843e10a329b88cd921a4d41c3a29800fd6b781 (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
--TEST--
Testing register_shutdown_function() with timeout. (Bug: #21513)
--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