From: root at mantoru dot de Operating system: * PHP version: 5.2.4 PHP Bug Type: XML Writer Bug description: XMLWriter::endElement() doesn't use WRONG_PARAM_COUNT
Description: ------------ XMLWriter::endElement() fails to emit a warning if too many parameters (= parameters at all) are passed. Gave me some trouble because I assumed it would write the ending tag of the specified tagname ("</$tagname>"). Reproduce code: --------------- <?php header('Content-Type: text/xml; charset=utf-8'); $xml = new XMLWriter; $xml->openMemory(); $xml->startDocument('1.0', 'UTF-8', 'yes'); $xml->writeComment('Generated by XMLWriter'); $xml->startElement('root'); $xml->writeElement('timestamp', time()); $xml->endElement('root'); // </root> echo $xml->flush(); ?> Expected result: ---------------- Warning: Wrong parameter count for XMLWriter::endElement() in %s on line %d Actual result: -------------- No warning -- Edit bug report at http://bugs.php.net/?id=43099&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43099&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43099&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43099&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43099&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43099&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43099&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43099&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43099&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43099&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43099&r=support Expected behavior: http://bugs.php.net/fix.php?id=43099&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43099&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43099&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43099&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43099&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43099&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43099&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43099&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43099&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43099&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43099&r=mysqlcfg