iliaa           Thu Mar 19 00:18:48 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/xmlrpc xmlrpc-epi-php.c 
  Log:
  
  Improved parameter parsing
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlrpc/xmlrpc-epi-php.c?r1=1.39.2.5.2.6.2.18&r2=1.39.2.5.2.6.2.19&diff_format=u
Index: php-src/ext/xmlrpc/xmlrpc-epi-php.c
diff -u php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.39.2.5.2.6.2.18 
php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.39.2.5.2.6.2.19
--- php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.39.2.5.2.6.2.18       Wed Dec 31 
11:15:47 2008
+++ php-src/ext/xmlrpc/xmlrpc-epi-php.c Thu Mar 19 00:18:48 2009
@@ -51,7 +51,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: xmlrpc-epi-php.c,v 1.39.2.5.2.6.2.18 2008/12/31 11:15:47 sebastian Exp 
$ */
+/* $Id: xmlrpc-epi-php.c,v 1.39.2.5.2.6.2.19 2009/03/19 00:18:48 iliaa Exp $ */
 
 /**********************************************************************
 * BUGS:                                                               *
@@ -681,14 +681,14 @@
 {
        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();



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to