mirror of
https://github.com/php/php-src.git
synced 2024-10-08 18:26:27 +00:00
29 lines
395 B
Plaintext
29 lines
395 B
Plaintext
![]() |
--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
|