summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network/gethostbyaddr_basic1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/network/gethostbyaddr_basic1.phpt')
-rw-r--r--ext/standard/tests/network/gethostbyaddr_basic1.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/standard/tests/network/gethostbyaddr_basic1.phpt b/ext/standard/tests/network/gethostbyaddr_basic1.phpt
new file mode 100644
index 000000000..2232d3626
--- /dev/null
+++ b/ext/standard/tests/network/gethostbyaddr_basic1.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Test gethostbyaddr() function : basic functionality
+--FILE--
+<?php
+/* Prototype : string gethostbyaddr ( string $ip_address )
+ * Description: Get the Internet host name corresponding to a given IP address
+ * Source code: ext/standard/dns.c
+*/
+
+echo "*** Testing gethostbyaddr() : basic functionality ***\n";
+echo gethostbyaddr("127.0.0.1")."\n";
+
+?>
+===DONE===
+--EXPECTF--
+*** Testing gethostbyaddr() : basic functionality ***
+%rloopback|localhost(\.localdomain)?%r
+===DONE=== \ No newline at end of file