com php-src: test timeout with shutdown function, variation: tests/basic/timeout_variation_10.phpt
| From: | Anatol Belski | Date: | Mon, 16 Mar 2015 18:37:07 +0000 |
| Subject: | com php-src: test timeout with shutdown function, variation: tests/basic/timeout_variation_10.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85531@lists.php.net to get a copy of this message | ||
Commit: cab21b934723238b9f5631cedfc69d76f0d66c58
Author: Anatol Belski <ab@php.net> Mon, 16 Mar 2015 19:37:07 +0100
Parents: 1d6f94eeefb6ca3858230a6225b1245b863b91f1
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cab21b934723238b9f5631cedfc69d76f0d66c58
Log:
test timeout with shutdown function, variation
Changed paths:
A tests/basic/timeout_variation_10.phpt
Diff:
diff --git a/tests/basic/timeout_variation_10.phpt b/tests/basic/timeout_variation_10.phpt
new file mode 100644
index 0000000..e945bbb
--- /dev/null
+++ b/tests/basic/timeout_variation_10.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Timeout within shutdown function, variation
+--FILE--
+<?php
+
+$t = 3;
+set_time_limit($t);
+
+function f()
+{
+ echo "call";
+ sleep(4);
+}
+
+register_shutdown_function("f");
+?>
+shutdown happens after here
+--EXPECTF--
+shutdown happens after here
+call
+Fatal error: Maximum execution time of 3 seconds exceeded in %s on line %d