From: Hannes Magnusson Date: Sat, 6 Jan 2007 15:53:55 +0000 (+0000) Subject: Fix parameter parsing X-Git-Tag: RELEASE_1_0_0RC1~382 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be32e75cf0dc29cf1da6841145d830590e1f043f;p=php Fix parameter parsing --- 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);