]> granicus.if.org Git - php/commitdiff
Fixed reference arguments handling
authorXinchen Hui <laruence@gmail.com>
Mon, 3 Mar 2014 10:20:53 +0000 (18:20 +0800)
committerXinchen Hui <laruence@gmail.com>
Mon, 3 Mar 2014 10:20:53 +0000 (18:20 +0800)
ext/standard/dns.c

index cba6e3c0971419104af857266b147cf3d8e89016..d0209fed5e5a8a39d5d7923e50223fa779356278 100644 (file)
@@ -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);
        }