Edit report at https://bugs.php.net/bug.php?id=39771&edit=1
ID: 39771 Comment by: taswyn at gmail dot com Reported by: dave dot lane at gmx dot net Summary: DOMDocument->saveHTML does not accept an optional DOMNode like saveXML Status: Closed Type: Feature/Change Request Package: *General Issues Operating System: Linux PHP Version: 5.2.0 Assigned To: cataphract Block user comment: N Private report: N New Comment: Note: when looking at the changelogs for this, the number of accepted arguments was never updated. This still only accepts one argument: [revision 307562, both copies of dom/document.c] 158 ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_savehtml, 0, 0, 0) 159 ZEND_END_ARG_INFO(); Previous Comments: ------------------------------------------------------------------------ [2011-09-12 23:07:34] jbolter at gmail dot com I am running PHP 5.3.6 but still get this error: PHP Warning: DOMDocument::saveHTML() expects exactly 0 parameters, 1 given Any ideas? ------------------------------------------------------------------------ [2011-01-18 20:56:11] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revision&revision=307562 Log: - Fixed wrong function call in original commit to FR #39771. ------------------------------------------------------------------------ [2011-01-18 20:45:54] cataphr...@php.net Implemented for PHP 5.3 and trunk. ------------------------------------------------------------------------ [2011-01-18 20:45:40] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revision&revision=307561 Log: - Implemented FR #39771 (Made DOMDocument::saveHTML accept an optional DOMNode like DOMDocument::saveXML). ------------------------------------------------------------------------ [2006-12-07 19:34:19] dave dot lane at gmx dot net Description: ------------ DOMDocument->saveHTML does not accept an optional DOMNode like DOMDocument->saveXML. In saveXML this functionality is implemented using xmlNodeDump. libxml2 offers the html equivalent htmlNodeDump. Is there a good reason why this is not implemented? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=39771&edit=1