X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fskip.inc;h=98b15e3242235a8b8092aec39062df02fa9c09ba;hb=3e696a1c24d6ffc382567876eafa2a5bd9b8afa7;hp=64dba3452f3e3ebf8ac0db9416690e07d36fed2e;hpb=0c8a4e49249dc2e9091f408af7a88aa0f73ac8b2;p=m6w6%2Fext-http diff --git a/tests/skip.inc b/tests/skip.inc index 64dba34..98b15e3 100644 --- a/tests/skip.inc +++ b/tests/skip.inc @@ -1,4 +1,9 @@ - \ No newline at end of file + (int) PHP_VERSION, "need PHP v$ver"); } +function checkurl($url) { skipif(!@fsockopen($url, 80), "$url not responsive"); } +checkext('http'); +?>