colder Sun May 31 21:32:20 2009 UTC
Added files:
/php-src/tests/lang 045.phpt
Log:
Add test for the timeout inside shutdown function
http://cvs.php.net/viewvc.cgi/php-src/tests/lang/045.phpt?view=markup&rev=1.1
Index: php-src/tests/lang/045.phpt
+++ php-src/tests/lang/045.phpt
--TEST--
Timeout again inside register_shutdown_function
--FILE--
<?php
set_time_limit(1);
register_shutdown_function("plop");
function plop() {
$ts = time();
while(true) {
if ((time()-$ts) > 2) {
echo "Failed!";
break;
}
}
}
plop();
?>
===DONE===
--EXPECTF--
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php