From: Xinchen Hui Date: Mon, 3 Mar 2014 10:20:53 +0000 (+0800) Subject: Fixed reference arguments handling X-Git-Tag: POST_PHPNG_MERGE~412^2~436^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dae6e672c24a3a248fa06a9f930644a9b1685082;p=php Fixed reference arguments handling --- diff --git a/ext/standard/dns.c b/ext/standard/dns.c index cba6e3c097..d0209fed5e 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -945,10 +945,12 @@ PHP_FUNCTION(dns_get_mx) return; } + mx_list = Z_REFVAL_P(mx_list); zval_dtor(mx_list); array_init(mx_list); if (weight_list) { + weight_list = Z_REFVAL_P(weight_list); zval_dtor(weight_list); array_init(weight_list); }