summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-05 22:46:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-05 22:46:40 +0000
commit89d758c37867decc97a4050a9b4ea2ca5b8714d5 (patch)
treec72076d7e498b9cdf3f2e459e5e80d100a6f0472 /ext/standard/dns.c
parent335786915a6a9c2d83b90cc4ae765e0838cf353d (diff)
downloadphp-git-89d758c37867decc97a4050a9b4ea2ca5b8714d5.tar.gz
MFH
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index 901c6c6322..47f9cb3278 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -174,9 +174,7 @@ PHP_FUNCTION(gethostbynamel)
}
convert_to_string_ex(arg);
- if (array_init(return_value) == FAILURE) {
- RETURN_FALSE;
- }
+ array_init(return_value);
hp = gethostbyname(Z_STRVAL_PP(arg));
if (hp == NULL || hp->h_addr_list == NULL) {
@@ -304,9 +302,7 @@ PHP_FUNCTION(getmxrr)
}
need_weight = 1;
pval_destructor(weight_list); /* start with clean array */
- if (array_init(weight_list) == FAILURE) {
- RETURN_FALSE;
- }
+ array_init(weight_list);
break;
default:
@@ -315,9 +311,7 @@ PHP_FUNCTION(getmxrr)
convert_to_string(host);
pval_destructor(mx_list); /* start with clean array */
- if (array_init(mx_list) == FAILURE ) {
- RETURN_FALSE;
- }
+ array_init(mx_list);
/* Go! */
i = res_search(Z_STRVAL_P(host), C_IN, T_MX, (u_char *)&ans, sizeof(ans));