[prev in list] [next in list] [prev in thread] [next in thread]
List: php-cvs
Subject: [PHP-CVS] cvs: php-src /tests/lang 045.phpt
From: "Etienne Kneuss" <colder () php ! net>
Date: 2009-05-31 21:32:20
Message-ID: cvscolder1243805540 () cvsserver
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic