diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-03-19 00:18:48 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-03-19 00:18:48 +0000 |
commit | 61bdfaa0827ce03a5a09ee4328b399a065bde057 (patch) | |
tree | cf8e2279cd278ab33a65028967e586d682f3902d /ext/xmlrpc | |
parent | a2e47734050969680a121972f31a59d92544fd5b (diff) | |
download | php-git-61bdfaa0827ce03a5a09ee4328b399a065bde057.tar.gz |
Improved parameter parsing
Diffstat (limited to 'ext/xmlrpc')
-rw-r--r-- | ext/xmlrpc/xmlrpc-epi-php.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c index 561f173aee..e365b76142 100644 --- a/ext/xmlrpc/xmlrpc-epi-php.c +++ b/ext/xmlrpc/xmlrpc-epi-php.c @@ -681,14 +681,14 @@ PHP_FUNCTION(xmlrpc_encode_request) { XMLRPC_REQUEST xRequest = NULL; char *outBuf; - zval **method, **vals, *out_opts; + zval **method, **vals, *out_opts = NULL; php_output_options out; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZ|a", &method, &vals, &out_opts) == FAILURE) { return; } - set_output_options(&out, (ZEND_NUM_ARGS() == 3) ? out_opts : 0); + set_output_options(&out, out_opts ? out_opts : 0); if (return_value_used) { xRequest = XMLRPC_RequestNew(); |