|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-23 18:39 UTC] chregu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 09:00:01 2025 UTC |
Description: ------------ Might have found a bug in this function. When the document pased contains special characters like ?,?,?... some level of character conversion is done in the output. Also, special characters pased as filename are omitted in the outputed filename. The string '?t ' in the reproduction code is converted to unicode character/CJK Unified Ideographs 9D20 (decimal: 40194). loaded modules: php_domxml php_iconv Apache version 2.2.3 in some other bugreports, it was said dump_file calls on functions from libxml12, there is no such file in php's dir. Reproduce code: --------------- $doc = domxml_new_doc('1.0'); $root = $doc->create_element('HTML'); $root = $doc->append_child($root); $head = $doc->create_element('HEAD'); $head = $root->append_child($head); $title = $doc->create_element('TITLE'); $title = $head->append_child($title); $text = $doc->create_text_node('This is y?t another title'); $text = $title->append_child($text); $path = 'some_absolute_path'; $filename = 'bugt?st3.xml'; $doc->dump_file($path . '/' . $filename, false, true); Expected result: ---------------- filename: bugt?st3.xml <?xml version="1.0"?> <HTML> <HEAD> <TITLE>This is a title</TITLE> </HEAD> </HTML> Actual result: -------------- filename: bugtst3.xml <?xml version="1.0"?> <HTML> <HEAD> <TITLE>This is y鴠another title</TITLE> </HEAD> </HTML>