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

index 3bcf683c6d4cef9dc50c5b0852810f24dd264325..8effb398366c9404adb28e1b2de0fba1122630a5 100644 (file)
@@ -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
        {