Bug #18387: Incorrect work with xml encoding

From: Date: Wed, 17 Jul 2002 07:55:14 +0000
Subject: Bug #18387: Incorrect work with xml encoding
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14385@lists.php.net to get a copy of this message
From: svazulia@tvc.ru Operating system: Windows (98,2000) PHP version: 4.2.1 PHP Bug Type: DOM XML related Bug description: Incorrect work with xml encoding short script: <?php if(!$dom = domxml_open_file("b00000000001.xml")) { echo "Error while parsing the document\n"; exit; } $root = $dom->document_element(); print_r($root); ?> return: "Error while parsing the document" when xml document has encoding option, like this: <?xml version="1.0" encoding='WINDOWS-1251' ?> without "encoding='WINDOWS-1251'" it work ok. -- Edit bug report at http://bugs.php.net/?id=18387&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18387&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18387&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18387&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18387&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18387&r=support Expected behavior: http://bugs.php.net/fix.php?id=18387&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18387&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18387&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18387&r=globals

« previous php.bugs (#14385) next »