iliaa           Thu Mar 19 00:19:20 2009 UTC

  Modified files:              
    /php-src/ext/xmlrpc xmlrpc-epi-php.c 
  Log:
  
  MFB:Improved parameter parsing
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlrpc/xmlrpc-epi-php.c?r1=1.67&r2=1.68&diff_format=u
Index: php-src/ext/xmlrpc/xmlrpc-epi-php.c
diff -u php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.67 
php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.68
--- php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.67    Tue Mar 10 23:39:52 2009
+++ php-src/ext/xmlrpc/xmlrpc-epi-php.c Thu Mar 19 00:19:20 2009
@@ -51,7 +51,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: xmlrpc-epi-php.c,v 1.67 2009/03/10 23:39:52 helly Exp $ */
+/* $Id: xmlrpc-epi-php.c,v 1.68 2009/03/19 00:19:20 iliaa Exp $ */
 
 /**********************************************************************
 * BUGS:                                                               *
@@ -687,14 +687,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