diff options
| author | Anatol Belski <ab@php.net> | 2015-03-16 19:37:07 +0100 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2015-03-16 19:37:07 +0100 |
| commit | cab21b934723238b9f5631cedfc69d76f0d66c58 (patch) | |
| tree | f4ca0086c40dcca4dad9543343729a4cc235aaa3 /tests/basic | |
| parent | 1d6f94eeefb6ca3858230a6225b1245b863b91f1 (diff) | |
| download | php-git-cab21b934723238b9f5631cedfc69d76f0d66c58.tar.gz | |
test timeout with shutdown function, variation
Diffstat (limited to 'tests/basic')
| -rw-r--r-- | tests/basic/timeout_variation_10.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/basic/timeout_variation_10.phpt b/tests/basic/timeout_variation_10.phpt new file mode 100644 index 0000000000..e945bbb0ef --- /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 |
