mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Display errors in shutdown function timeout test
This commit is contained in:
parent
f0960879e4
commit
f83a23e59d
1 changed files with 3 additions and 4 deletions
|
@ -7,8 +7,6 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
ini_set('display_errors', 0);
|
|
||||||
|
|
||||||
echo "Start\n";
|
echo "Start\n";
|
||||||
|
|
||||||
function boo()
|
function boo()
|
||||||
|
@ -18,7 +16,6 @@ function boo()
|
||||||
|
|
||||||
register_shutdown_function("boo");
|
register_shutdown_function("boo");
|
||||||
|
|
||||||
/* not necessary, just to show the error sooner */
|
|
||||||
set_time_limit(1);
|
set_time_limit(1);
|
||||||
|
|
||||||
/* infinite loop to simulate long processing */
|
/* infinite loop to simulate long processing */
|
||||||
|
@ -27,6 +24,8 @@ for (;;) {}
|
||||||
echo "End\n";
|
echo "End\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECTF--
|
||||||
Start
|
Start
|
||||||
|
|
||||||
|
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
|
||||||
Shutdown
|
Shutdown
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue