From: Michael Wallner Date: Fri, 19 Aug 2005 15:26:16 +0000 (+0000) Subject: - test for bug #34191 X-Git-Tag: RELEASE_0_12_0~25 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1d37eec22d2a073acd8785431621c26c2312a246;p=m6w6%2Fext-http - test for bug #34191 --- diff --git a/tests/bug_34191.phpt b/tests/bug_34191.phpt new file mode 100644 index 0000000..65c2b89 Binary files /dev/null and b/tests/bug_34191.phpt differ diff --git a/tests/skip.inc b/tests/skip.inc index 09da169..f273c91 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -3,7 +3,7 @@ defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w')); function skipif($if, $skip) { if ($if) { fprintf(STDOUT, "skip $skip"); exit(); }} function checkcgi() { skipif(!strncasecmp('CLI', PHP_SAPI, 3), 'need CGI SAPI'); } function checkext($ext) { skipif(!extension_loaded($ext), "need ext/$ext"); } -function checkver($ver) { skipif($ver > (int) PHP_VERSION, "need PHP v$ver"); } +function checkver($ver) { skipif(round($ver,1) > round((double) PHP_VERSION,1), "need PHP v$ver"); } function checkurl($url) { skipif(!@fsockopen($url, 80), "$url not responsive"); } function checkcls($cls) { skipif(!class_exists($cls), "need class $cls"); } checkext('http');