diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-10-24 22:50:19 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-10-24 22:50:19 +0000 |
| commit | 68f328560d4730c73b70776e9574e8ac11e80e39 (patch) | |
| tree | 7d31f0c665794cf28c7b1281bd6073e42432a748 | |
| parent | 1155200b02a360e1565193863d10858d4b592b39 (diff) | |
| download | php-git-68f328560d4730c73b70776e9574e8ac11e80e39.tar.gz | |
MFB: Fixed bug #43099 (XMLWriter::endElement() does not check # of params)
| -rw-r--r-- | NEWS | 2 | ||||
| -rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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 { |
