From: Greg Beaver Date: Sun, 30 Nov 2003 22:49:33 +0000 (+0000) Subject: add in skip condition for internet offline, and callback test X-Git-Tag: php-5.0.0b3RC1~470 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=398dec718ab3434dd26c7ec78d0681eeaa2dbe1b;p=php add in skip condition for internet offline, and callback test --- diff --git a/pear/tests/pear_common_downloadHttp.phpt b/pear/tests/pear_common_downloadHttp.phpt index 0cec4a4176..450f1c3b5a 100644 --- a/pear/tests/pear_common_downloadHttp.phpt +++ b/pear/tests/pear_common_downloadHttp.phpt @@ -5,6 +5,10 @@ PEAR_Common::downloadHttp test if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } +$fp = @fsockopen('pear.php.net', 80); +if (!$fp) { + echo 'skip'; +} ?> --FILE--