From 1d37eec22d2a073acd8785431621c26c2312a246 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 19 Aug 2005 15:26:16 +0000 Subject: [PATCH] - test for bug #34191 --- tests/bug_34191.phpt | Bin 0 -> 397 bytes tests/skip.inc | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/bug_34191.phpt diff --git a/tests/bug_34191.phpt b/tests/bug_34191.phpt new file mode 100644 index 0000000000000000000000000000000000000000..65c2b89a7d7658dbf585a198960e4a8316336345 GIT binary patch literal 397 zcmY*U%TB^T6eZ%qOfui#1Y=qk1Hs3_`XE>bs2XfwLRgp(7_Myt&P>`tg@r%hkN7Vx z{0u(>+bW88b#BD**Q3@9#=7V<1*C ziF7$d)(J);1TlGp*gh&(_f}X0k^Kwc+1S=%8jY-ss-0)rtli6mTb%oYy6ZBZ4_Mp1 zz4Y46vtSXWW|TI(8@A@&GDdeG(Ml%ZI0=|$x@YH}|3_k|%`Are0T7`grF*6BWa-bm z?=zR@$@)8=7;V3974j-xy?=aer0sH9EWE+~%jOq4j&vIU literal 0 HcmV?d00001 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'); -- 2.30.2