cvs: php4 /tests/func 005a.phpt
| From: | Jani Taskinen | Date: | Thu, 23 Jan 2003 03:28:41 +0000 |
| Subject: | cvs: php4 /tests/func 005a.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18090@lists.php.net to get a copy of this message | ||
sniper Wed Jan 22 22:28:41 2003 EDT
Added files:
/php4/tests/func 005a.phpt
Log:
Added test for bug: #21513
Index: php4/tests/func/005a.phpt
+++ php4/tests/func/005a.phpt
--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