cvs: pear-core /PEAR XMLParser.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Fri, 17 Apr 2009 22:18:06 +0000 |
| Subject: | cvs: pear-core /PEAR XMLParser.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8350@lists.php.net to get a copy of this message | ||
dufuz Fri Apr 17 22:18:06 2009 UTC
Modified files:
/pear-core/PEAR XMLParser.php
Log:
fix encoding issues on PHP 4
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/XMLParser.php?r1=1.22&r2=1.23&diff_format=u
Index: pear-core/PEAR/XMLParser.php
diff -u pear-core/PEAR/XMLParser.php:1.22 pear-core/PEAR/XMLParser.php:1.23
--- pear-core/PEAR/XMLParser.php:1.22 Sun Mar 8 00:45:39 2009
+++ pear-core/PEAR/XMLParser.php Fri Apr 17 22:18:06 2009
@@ -10,7 +10,7 @@
* @author Stephan Schmidt (original XML_Unserializer code)
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license New
BSD License
- * @version CVS: $Id: XMLParser.php,v 1.22 2009/03/08 00:45:39 dufuz Exp $
+ * @version CVS: $Id: XMLParser.php,v 1.23 2009/04/17 22:18:06 dufuz Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -98,6 +98,7 @@
if (version_compare(phpversion(), '5.0.0', 'lt') &&
$this->encoding == 'UTF-8') {
$data = utf8_decode($data);
+ $this->encoding = 'ISO-8859-1';
}
$xp = xml_parser_create($this->encoding);