summaryrefslogtreecommitdiff
path: root/ext/xmlrpc
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-03-19 00:18:48 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-03-19 00:18:48 +0000
commit61bdfaa0827ce03a5a09ee4328b399a065bde057 (patch)
treecf8e2279cd278ab33a65028967e586d682f3902d /ext/xmlrpc
parenta2e47734050969680a121972f31a59d92544fd5b (diff)
downloadphp-git-61bdfaa0827ce03a5a09ee4328b399a065bde057.tar.gz
Improved parameter parsing
Diffstat (limited to 'ext/xmlrpc')
-rw-r--r--ext/xmlrpc/xmlrpc-epi-php.c4
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();