cvs: php4(PHP_4_3) /tests/func 005a.phpt
| From: | Jani Taskinen | Date: | Thu, 23 Jan 2003 03:29:23 +0000 |
| Subject: | cvs: php4(PHP_4_3) /tests/func 005a.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18091@lists.php.net to get a copy of this message | ||
sniper Wed Jan 22 22:29:23 2003 EDT
Added files: (Branch: PHP_4_3)
/php4/tests/func 005a.phpt
Log:
MFH: 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