Skip to content

Commit 39ed999

Browse files
authored
Fix GH-13688: Test curl_basic_008 can fail (#13693)
.invalid is a reserved TLD that should never be caught.
1 parent 1006e10 commit 39ed999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/curl/tests/curl_basic_008.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ TestFest 2009 - AFUP - Perrick Penet <perrick@noparking.net>
66
curl
77
--SKIPIF--
88
<?php
9-
$addr = "www.".uniqid().".".uniqid();
9+
$addr = "www.".uniqid().".invalid";
1010
if (gethostbyname($addr) != $addr) {
1111
print "skip catch all dns";
1212
}
1313
?>
1414
--FILE--
1515
<?php
1616

17-
$url = "http://www.".uniqid().".".uniqid();
17+
$url = "http://www.".uniqid().".invalid";
1818
$ch = curl_init();
1919
curl_setopt($ch, CURLOPT_URL, $url);
2020

0 commit comments

Comments
 (0)