1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00

Fixed reference arguments handling

This commit is contained in:
Xinchen Hui
2014-03-03 18:20:53 +08:00
parent b4ccb6a9fd
commit dae6e672c2
+2
View 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);
}