summaryrefslogtreecommitdiff
path: root/ext/standard/php_dns.h
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-10-16 02:10:52 +0000
committerScott MacVicar <scottmac@php.net>2009-10-16 02:10:52 +0000
commit76d875278cbf69c64c85999fc56c23481f2e7b49 (patch)
tree726e45592c92552c6d2378141bc2f8985094596f /ext/standard/php_dns.h
parent5af006d64055d602dc2682f4bef5e067949cabbf (diff)
downloadphp-git-76d875278cbf69c64c85999fc56c23481f2e7b49.tar.gz
Part fix for bug #49224
Diffstat (limited to 'ext/standard/php_dns.h')
-rw-r--r--ext/standard/php_dns.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/standard/php_dns.h b/ext/standard/php_dns.h
index 4496371727..74b676d8c1 100644
--- a/ext/standard/php_dns.h
+++ b/ext/standard/php_dns.h
@@ -28,8 +28,6 @@
((int)dns_search(res, dname, class, type, answer, anslen, (struct sockaddr *)&from, &fromsize))
#define php_dns_free_handle(res) \
dns_free(res)
-#define php_dns_errno(_res) \
- (NO_DATA)
#elif defined(HAVE_RES_NSEARCH)
#define php_dns_search(res, dname, class, type, answer, anslen) \
@@ -37,15 +35,11 @@
#define php_dns_free_handle(res) \
res_nclose(res); \
php_dns_free_res(*res)
-#define php_dns_errno(res) \
- (res->res_h_errno)
#elif defined(HAVE_RES_SEARCH)
#define php_dns_search(res, dname, class, type, answer, anslen) \
res_search(dname, class, type, answer, anslen)
#define php_dns_free_handle(res) /* noop */
-#define php_dns_errno(res) \
- (_res.res_h_errno)
#endif