From: Etienne Kneuss Date: Sun, 31 May 2009 21:32:20 +0000 (+0000) Subject: Add test for the timeout inside shutdown function X-Git-Tag: php-5.4.0alpha1~191^2~3437 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c198fbb63cb018d3887ed218e7d0b47441cd8d3;p=php Add test for the timeout inside shutdown function --- diff --git a/tests/lang/045.phpt b/tests/lang/045.phpt new file mode 100644 index 0000000000..399fac7f60 --- /dev/null +++ b/tests/lang/045.phpt @@ -0,0 +1,23 @@ +--TEST-- +Timeout again inside register_shutdown_function +--FILE-- + 2) { + echo "Failed!"; + break; + } + } +} +plop(); +?> +===DONE=== +--EXPECTF-- +Fatal error: Maximum execution time of 1 second exceeded in %s on line %d + +Fatal error: Maximum execution time of 1 second exceeded in %s on line %d