Skip to content

Commit 9dd12f4

Browse files
committed
gai_strerror will return differently per platform
1 parent b960ae6 commit 9dd12f4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ext/standard/tests/network/gethostbyname_error003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ gethostbyname() function - basic type return error test
77
var_dump(is_string(gethostbyname("asdfasdf")));
88
?>
99
--EXPECTF--
10-
Warning: gethostbyname(): php_network_getaddresses: getaddrinfo for asdfasdf failed: nodename nor servname provided, or not known in %s on line %d
10+
Warning: gethostbyname(): php_network_getaddresses: getaddrinfo for asdfasdf failed: %s in %s on line %d
1111
bool(true)

ext/standard/tests/network/gethostbyname_error006.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ gethostbyname() function - basic invalid parameter test
77
var_dump(gethostbyname(".toto.toto.toto"));
88
?>
99
--EXPECTF--
10-
Warning: gethostbyname(): php_network_getaddresses: getaddrinfo for .toto.toto.toto failed: nodename nor servname provided, or not known in %s on line %d
10+
Warning: gethostbyname(): php_network_getaddresses: getaddrinfo for .toto.toto.toto failed: %s in %s on line %d
1111
string(15) ".toto.toto.toto"

0 commit comments

Comments
 (0)