Skip to content

Commit c22fd2c

Browse files
committed
getaddrinfo emits warnings now for failures to resolve
this borks curl tests, so supress warnings on it there
1 parent 9dd12f4 commit c22fd2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ext/curl/tests/curl_basic_008.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ curl
77
--SKIPIF--
88
<?php
99
$addr = "www.".uniqid().".invalid";
10-
if (gethostbyname($addr) != $addr) {
10+
if (@gethostbyname($addr) != $addr) {
1111
print "skip catch all dns";
1212
}
1313
?>

ext/curl/tests/curl_basic_010.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ curl
77
--SKIPIF--
88
<?php
99
$addr = "www.".uniqid().".".uniqid();
10-
if (gethostbyname($addr) != $addr) {
10+
if (@gethostbyname($addr) != $addr) {
1111
print "skip catch all dns";
1212
}
1313
?>

0 commit comments

Comments
 (0)