1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 04:51:03 +02:00

Fixed tests (skip when catch-all DNS such as openDNS is being used)

This commit is contained in:
Ilia Alshanetsky
2011-09-07 15:31:48 +00:00
parent 26a80c72af
commit 12e983e714
2 changed files with 14 additions and 2 deletions

View File

@@ -3,7 +3,13 @@ Test curl_error() & curl_errno() function with problematic host
--CREDITS--
TestFest 2009 - AFUP - Perrick Penet <perrick@noparking.net>
--SKIPIF--
<?php if (!extension_loaded("curl")) print "skip"; ?>
<?php
if (!extension_loaded("curl")) print "skip";
$addr = "www.".uniqid().".".uniqid();
if (gethostbyname($addr) != $addr) {
print "skip catch all dns";
}
?>
--FILE--
<?php

View File

@@ -3,7 +3,13 @@ Test curl_error() & curl_errno() function with problematic proxy
--CREDITS--
TestFest 2009 - AFUP - Perrick Penet <perrick@noparking.net>
--SKIPIF--
<?php if (!extension_loaded("curl")) print "skip"; ?>
<?php
if (!extension_loaded("curl")) print "skip";
$addr = "www.".uniqid().".".uniqid();
if (gethostbyname($addr) != $addr) {
print "skip catch all dns";
}
?>
--FILE--
<?php