note 95479 deleted from xmlreader.xml by thiago

From: Date: Tue, 05 Jan 2010 12:05:30 +0000
Subject: note 95479 deleted from xmlreader.xml by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164656@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- 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"?>

« previous php.notes (#164656) next »