ID:               45600
 Updated by:       [EMAIL PROTECTED]
 Reported By:      patrick dot lanove at telenet dot be
-Status:           Open
+Status:           Wont fix
 Bug Type:         DOM XML related
 Operating System: Windows XP
 PHP Version:      4.4.8
 New Comment:

domxml and PHP4 isn't supported anymore, you have to live with the bug.

I can't even say, if it's a bug, I didn't look closely at it, but there

won't be any new (non security) releases of domxml and/or PHP 4.4


Previous Comments:
------------------------------------------------------------------------

[2008-07-23 10:09:31] patrick dot lanove at telenet dot be

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&#x9D20;another title</TITLE>
  </HEAD>
</HTML>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45600&edit=1

Reply via email to