diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-11 10:41:33 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-12 17:14:16 +0200 |
commit | f83a23e59d80201a652a823ff0824d2b4964ae1a (patch) | |
tree | f377724f6526743e0a8efa38b616ec2fd4f3cf4d /tests | |
parent | f0960879e4e93e8204e6b70ce833f8f0b405cc28 (diff) | |
download | php-git-f83a23e59d80201a652a823ff0824d2b4964ae1a.tar.gz |
Display errors in shutdown function timeout test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/func/005a.phpt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/func/005a.phpt b/tests/func/005a.phpt index a7ed5dbfdd..cf1e571377 100644 --- a/tests/func/005a.phpt +++ b/tests/func/005a.phpt @@ -7,8 +7,6 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); --FILE-- <?php -ini_set('display_errors', 0); - echo "Start\n"; function boo() @@ -18,7 +16,6 @@ function boo() register_shutdown_function("boo"); -/* not necessary, just to show the error sooner */ set_time_limit(1); /* infinite loop to simulate long processing */ @@ -27,6 +24,8 @@ for (;;) {} echo "End\n"; ?> ---EXPECT-- +--EXPECTF-- Start + +Fatal error: Maximum execution time of 1 second exceeded in %s on line %d Shutdown |