summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-10-24 22:50:19 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-10-24 22:50:19 +0000
commit68f328560d4730c73b70776e9574e8ac11e80e39 (patch)
tree7d31f0c665794cf28c7b1281bd6073e42432a748
parent1155200b02a360e1565193863d10858d4b592b39 (diff)
downloadphp-git-68f328560d4730c73b70776e9574e8ac11e80e39.tar.gz
MFB: Fixed bug #43099 (XMLWriter::endElement() does not check # of params)
-rw-r--r--NEWS2
-rw-r--r--ext/xmlwriter/php_xmlwriter.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index fe2a66dfae..c5fc470a67 100644
--- a/NEWS
+++ b/NEWS
@@ -37,6 +37,8 @@ PHP NEWS
- Fixed htmlentities/htmlspecialchars not to accept partial multibyte
sequences. (Stas)
+- Fixed bug #43099 (XMLWriter::endElement() does not check # of params).
+ (Ilia)
- Fixed bug #43020 (Warning message is missing with shuffle() and more
than one argument). (Scott)
- Fixed bug #4294 (Move *timeout initialization from RINIT to connect time).
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index 45a0d912c1..5fcdc54b0b 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
{