From be32e75cf0dc29cf1da6841145d830590e1f043f Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sat, 6 Jan 2007 15:53:55 +0000 Subject: [PATCH] Fix parameter parsing --- ext/xmlwriter/php_xmlwriter.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index fee774e87f..d9f152e586 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -1372,10 +1372,10 @@ static PHP_FUNCTION(xmlwriter_write_dtd_entity) 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 @@ static PHP_FUNCTION(xmlwriter_write_dtd_entity) { 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); -- 2.50.1