Skip to content

Commit 8fb9002

Browse files
committed
getaddrinfo emits warnings now for failures to resolve
this borks curl tests, so supress warnings on it there
1 parent 500f68c commit 8fb9002

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)