diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-06-05 16:04:11 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-06-05 16:04:11 +0400 |
commit | c1965f58d4dd3970912dcd6a63ccd5860bae1a97 (patch) | |
tree | 15b4a94e8e8405f791438c468ad4eb03f60c4079 /ext/standard/dns.c | |
parent | 3d87391cc06fe87344536e88ac74ded22b0195cf (diff) | |
download | php-git-c1965f58d4dd3970912dcd6a63ccd5860bae1a97.tar.gz |
Use reference counting instead of zval duplication
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r-- | ext/standard/dns.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c index de0e24a2d7..fd0acd7e3c 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -943,16 +943,14 @@ PHP_FUNCTION(dns_get_mx) struct __res_state *handle = &state; #endif - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|z", &hostname, &hostname_len, &mx_list, &weight_list) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/|z/", &hostname, &hostname_len, &mx_list, &weight_list) == FAILURE) { 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); } |