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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user