Display errors in shutdown function timeout test

This commit is contained in:
Nikita Popov 2020-05-11 10:41:33 +02:00
parent f0960879e4
commit f83a23e59d

View file

@ -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