]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #43099 (XMLWriter::endElement() does not check # of params)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 24 Oct 2007 22:50:30 +0000 (22:50 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 24 Oct 2007 22:50:30 +0000 (22:50 +0000)
ext/xmlwriter/php_xmlwriter.c

index a76ebaf963b8095044660f9a40c8e236906aaaa9..ede55ccbef2aa88656789de2d7815029a2be24e2 100644 (file)
@@ -468,6 +468,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
        {