ID: 26443 User updated by: thomas dot sattler at decon-network dot de Reported By: thomas dot sattler at decon-network dot de -Status: Closed +Status: Open Bug Type: DOM XML related Operating System: Windows XP -PHP Version: 4CVS-2003-12-02 +PHP Version: 4CVS-2003-12-03 New Comment:
This bug is not fixed for the domxml_dump_mem() in the following example: <?php ini_set("display_errors", 1); error_reporting(E_ALL); echo foobar; $doc = domxml_new_doc("1.0"); $root = $doc->create_element("bar"); $root = $doc->append_child($root); $root->set_content("content € rest content"); var_dump($doc); $test_text = $doc->dump_mem(0, 'iso-8859-1'); print htmlspecialchars($test_text); ?> The warnings dump_mem(): output conversion failed due to conv error dump_mem(): Bytes: 0x80 0x20 0x72 0x65 dump_mem(): xmlOutputBufferFlush: encoder error are missing. Previous Comments: ------------------------------------------------------------------------ [2003-12-02 10:08:25] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2003-12-02 06:21:08] thomas dot sattler at decon-network dot de Note: you have to use the EUR-symbol in the set_content() command. ------------------------------------------------------------------------ [2003-12-02 02:14:14] thomas dot sattler at decon-network dot de For domxml_open_mem error reporting is now available, but not for the second part with domxml_dump_mem <?php ini_set("display_errors", 1); error_reporting(E_ALL); echo foobar; $xmlstr='<?xml version="1.0" encoding="UTF-8"?><foo>'; $doc = domxml_open_mem($xmlstr); var_dump($doc); $xmltest = domxml_new_doc("1.0"); $xmlroot = $xmltest->create_element("testtag"); $xmlroot = $xmltest->append_child($xmlroot); $xmlroot->set_content("content € rest content"); var_dump($xmltest); $test_text = $xmltest->dump_mem(0, 'iso-8859-1'); print "<pre> $test_text </pre>"; ?> ------------------------------------------------------------------------ [2003-12-01 11:18:38] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2003-12-01 02:15:35] [EMAIL PROTECTED] Note: All errors NOT coming from domxml are displayed just fine. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26443 -- Edit this bug report at http://bugs.php.net/?id=26443&edit=1