summaryrefslogtreecommitdiff
path: root/ext/xmlwriter
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-10-24 22:49:02 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2007-10-24 22:49:02 (GMT)
commita687b6e6b39e993e388e0f365dc9951335fa2b5d (patch)
tree5f6ca21324381a9cd03c592bf3ccccbf8a5bba28 /ext/xmlwriter
parent4cc23cf49d9b4899331c3dbefe810f25d6b046ce (diff)
downloadphp-a687b6e6b39e993e388e0f365dc9951335fa2b5d.tar.gz
Fixed bug #43099 (XMLWriter::endElement() does not check # of params)
Diffstat (limited to 'ext/xmlwriter')
-rw-r--r--ext/xmlwriter/php_xmlwriter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index 3bcf683..8effb39 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
{