Added
Link Here
|
0 |
- |
1 |
--- ext/standard/php_dns.h.orig 2021-10-19 10:34:32 UTC |
|
|
2 |
+++ ext/standard/php_dns.h |
3 |
@@ -24,6 +24,7 @@ |
4 |
((int)dns_search(res, dname, class, type, (char *) answer, anslen, (struct sockaddr *)&from, &fromsize)) |
5 |
#define php_dns_free_handle(res) \ |
6 |
dns_free(res) |
7 |
+#define php_dns_errno(handle) h_errno |
8 |
|
9 |
#elif defined(HAVE_RES_NSEARCH) |
10 |
#define php_dns_search(res, dname, class, type, answer, anslen) \ |
11 |
@@ -37,11 +38,13 @@ |
12 |
res_nclose(res); \ |
13 |
php_dns_free_res(res) |
14 |
#endif |
15 |
+#define php_dns_errno(handle) handle->res_h_errno |
16 |
|
17 |
#elif defined(HAVE_RES_SEARCH) |
18 |
#define php_dns_search(res, dname, class, type, answer, anslen) \ |
19 |
res_search(dname, class, type, answer, anslen) |
20 |
#define php_dns_free_handle(res) /* noop */ |
21 |
+#define php_dns_errno(handle) h_errno |
22 |
|
23 |
#endif |
24 |
|