bjori           Sat Jan  6 15:53:56 2007 UTC

  Modified files:              
    /php-src/ext/xmlwriter      php_xmlwriter.c 
  Log:
  Fix parameter parsing
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlwriter/php_xmlwriter.c?r1=1.43&r2=1.44&diff_format=u
Index: php-src/ext/xmlwriter/php_xmlwriter.c
diff -u php-src/ext/xmlwriter/php_xmlwriter.c:1.43 
php-src/ext/xmlwriter/php_xmlwriter.c:1.44
--- php-src/ext/xmlwriter/php_xmlwriter.c:1.43  Mon Jan  1 09:29:33 2007
+++ php-src/ext/xmlwriter/php_xmlwriter.c       Sat Jan  6 15:53:55 2007
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: php_xmlwriter.c,v 1.43 2007/01/01 09:29:33 sebastian Exp $ */
+/* $Id: php_xmlwriter.c,v 1.44 2007/01/06 15:53:55 bjori Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1372,10 +1372,10 @@
        zval *this = getThis();
 
        if (this) {
-               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s&s&",
+               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, 
"s&s&|ls&s&s&",
                        &name, &name_len, UG(utf8_conv), &content, 
&content_len, UG(utf8_conv),
-                       &pe, UG(utf8_conv), &pubid, &pubid_len, UG(utf8_conv), 
&sysid, &sysid_len, UG(utf8_conv),
-                       UG(utf8_conv), &ndataid, &ndataid_len) == FAILURE) {
+                       &pe, &pubid, &pubid_len, UG(utf8_conv), &sysid, 
&sysid_len, UG(utf8_conv),
+                       &ndataid, &ndataid_len, UG(utf8_conv)) == FAILURE) {
                        return;
                }
                XMLWRITER_FROM_OBJECT(intern, this);
@@ -1384,8 +1384,8 @@
        {
                if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, 
"rs&s&|ls&s&s&", &pind, 
                        &name, &name_len, UG(utf8_conv), &content, 
&content_len, UG(utf8_conv),
-                       &pe, UG(utf8_conv), &pubid, &pubid_len, UG(utf8_conv), 
&sysid, &sysid_len, UG(utf8_conv),
-                       UG(utf8_conv), &ndataid, &ndataid_len) == FAILURE) {
+                       &pe, &pubid, &pubid_len, UG(utf8_conv), &sysid, 
&sysid_len, UG(utf8_conv),
+                       &ndataid, &ndataid_len, UG(utf8_conv)) == FAILURE) {
                        return;
                }
                ZEND_FETCH_RESOURCE(intern,xmlwriter_object *, &pind, -1, 
"XMLWriter", le_xmlwriter);

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

Reply via email to