Skip to content

Commit a24b789

Browse files
nikicalexdowad
authored andcommitted
Display errors in shutdown function timeout test
1 parent d78b972 commit a24b789

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/func/005a.phpt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
77
--FILE--
88
<?php
99

10-
ini_set('display_errors', 0);
11-
1210
echo "Start\n";
1311

1412
function boo()
@@ -18,7 +16,6 @@ function boo()
1816

1917
register_shutdown_function("boo");
2018

21-
/* not necessary, just to show the error sooner */
2219
set_time_limit(1);
2320

2421
/* infinite loop to simulate long processing */
@@ -27,6 +24,8 @@ for (;;) {}
2724
echo "End\n";
2825

2926
?>
30-
--EXPECT--
27+
--EXPECTF--
3128
Start
29+
30+
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
3231
Shutdown

0 commit comments

Comments
 (0)