note 95479 added to xmlreader.xml
| From: | Anonymous at osu1 dot php dot net | Date: | Tue, 05 Jan 2010 09:34:22 +0000 |
| Subject: | note 95479 added to xmlreader.xml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164653@lists.php.net to get a copy of this message | ||
with PHP 5.2.10-2ubuntu6.3
<?php
$r = new XMLReader();
$r->xml('<a>z</a>', 'utf-8');
while ($r->read());
$r->close();
?>
cause :
Warning: XMLReader::read(): /tmp:1: parser error : Extra content at the end of the document in
/tmp/t.php on line 4
strange !
to avoid this error, you must leave encoding to null or indicate the encoding in the xml declaration
: <?xml version="1.0" encoding="utf-8"?>
----
Server IP: 89.31.146.176
Probable Submitter: 193.54.109.8
----
Manual Page -- http://www.php.net/manual/en/xmlreader.xml.php
Edit -- https://master.php.net/note/edit/95479
Del: integrated -- https://master.php.net/note/delete/95479/integrated
Del: useless -- https://master.php.net/note/delete/95479/useless
Del: bad code -- https://master.php.net/note/delete/95479/bad+code
Del: spam -- https://master.php.net/note/delete/95479/spam
Del: non-english -- https://master.php.net/note/delete/95479/non-english
Del: in docs -- https://master.php.net/note/delete/95479/in+docs
Del: other reasons-- https://master.php.net/note/delete/95479
Reject -- https://master.php.net/note/reject/95479
Search -- https://master.php.net/manage/user-notes.php