summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index bf8fa2eb76..f3a4d71b8d 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -256,19 +256,11 @@ PHP_FUNCTION(getmxrr)
if (zend_get_parameters(ht, 2, &host, &mx_list) == FAILURE) {
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 2)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
break;
case 3:
if (zend_get_parameters(ht, 3, &host, &mx_list, &weight_list) == FAILURE) {
WRONG_PARAM_COUNT;
}
- if (!ParameterPassedByReference(ht, 2) || !ParameterPassedByReference(ht, 3)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
need_weight = 1;
pval_destructor(weight_list); /* start with clean array */
if ( array_init(weight_list) == FAILURE ) {