]> granicus.if.org Git - php/commitdiff
Display errors in shutdown function timeout test
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 11 May 2020 08:41:33 +0000 (10:41 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 12 May 2020 15:14:16 +0000 (17:14 +0200)
tests/func/005a.phpt

index a7ed5dbfddf3ae953bd8305d7993034f2526b0f9..cf1e5713770a9a1707e20f95fba150c2b852301d 100644 (file)
@@ -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