summaryrefslogtreecommitdiff
path: root/ext/standard/dns.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-12-31 14:33:41 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-12-31 14:33:41 +0000
commit15aada4fa214f5a54f84c0b885603a1701150a68 (patch)
tree970713e09afdf7589d94156ea172b75c8e832b31 /ext/standard/dns.h
parentc2d1b06567c46d33c4c669b1008b46808b4ae07d (diff)
downloadphp-git-15aada4fa214f5a54f84c0b885603a1701150a68.tar.gz
MFB: Added gethostname() to return the current system host name.
Diffstat (limited to 'ext/standard/dns.h')
-rw-r--r--ext/standard/dns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/dns.h b/ext/standard/dns.h
index 38386879a1..3d1a1b21b9 100644
--- a/ext/standard/dns.h
+++ b/ext/standard/dns.h
@@ -31,6 +31,10 @@ PHP_FUNCTION(gethostbyaddr);
PHP_FUNCTION(gethostbyname);
PHP_FUNCTION(gethostbynamel);
+#ifdef HAVE_GETHOSTNAME
+PHP_FUNCTION(gethostname);
+#endif
+
#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32))
PHP_FUNCTION(dns_check_record);