com php-src: fix timeout with cal_user_func: tests/basi c/timeout_variation_4.phpt

From: Date: Mon, 16 Mar 2015 18:16:09 +0000
Subject: com php-src: fix timeout with cal_user_func: tests/basi c/timeout_variation_4.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85536@lists.php.net to get a copy of this message
Commit: 8f1fa842cd7248e9b4faf8a9f426d9a83b3c468e Author: Anatol Belski <ab@php.net> Mon, 16 Mar 2015 19:16:09 +0100 Parents: 7a7d8b9f9de6439a0e0a96f5ca016d8dcf7a2f52 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8f1fa842cd7248e9b4faf8a9f426d9a83b3c468e Log: fix timeout with cal_user_func Changed paths: A tests/basic/timeout_variation_4.phpt Diff: diff --git a/tests/basic/timeout_variation_4.phpt b/tests/basic/timeout_variation_4..phpt new file mode 100644 index 0000000..053a33a --- /dev/null +++ b/tests/basic/timeout_variation_4.phpt @@ -0,0 +1,21 @@ +--TEST-- +Timeout within call_user_func +--FILE-- +<?php + +$t = 3; +set_time_limit($t); + +function hello ($t) { + echo "call", PHP_EOL; + sleep($t*2); +} + +call_user_func('hello', $t); + +?> +never reached here +--EXPECTF-- +call + +Fatal error: Maximum execution time of 3 seconds exceeded in %s on line %d

« previous php.cvs (#85536) next »