From: Ilia Alshanetsky Date: Wed, 24 Oct 2007 22:49:02 +0000 (+0000) Subject: Fixed bug #43099 (XMLWriter::endElement() does not check # of params) X-Git-Tag: RELEASE_1_3_1~813 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a687b6e6b39e993e388e0f365dc9951335fa2b5d;p=php Fixed bug #43099 (XMLWriter::endElement() does not check # of params) --- diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 3bcf683c6d..8effb39836 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -464,6 +464,9 @@ static void php_xmlwriter_end(INTERNAL_FUNCTION_PARAMETERS, xmlwriter_read_int_t if (this) { XMLWRITER_FROM_OBJECT(intern, this); + if (ZEND_NUM_ARGS()) { + WRONG_PARAM_COUNT; + } } else #endif {