cvs: pear-core /PEAR XMLParser.php

From: Date: Fri, 11 Jul 2008 20:11:58 +0000
Subject: cvs: pear-core /PEAR XMLParser.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7627@lists.php.net to get a copy of this message
dufuz Fri Jul 11 20:11:58 2008 UTC Modified files: /pear-core/PEAR XMLParser.php Log: use stripos so people can write utf-8 in lowercase, we have a version_compare in the if else sentence and PHP 4 is executed in another block and thus is should be safe to use stripos which is PHP 5 only http://cvs.php.net/viewvc.cgi/pear-core/PEAR/XMLParser.php?r1=1.13&r2=1.14&diff_format=u Index: pear-core/PEAR/XMLParser.php diff -u pear-core/PEAR/XMLParser.php:1.13 pear-core/PEAR/XMLParser.php:1.14 --- pear-core/PEAR/XMLParser.php:1.13 Thu Jan 3 20:26:36 2008 +++ pear-core/PEAR/XMLParser.php Fri Jul 11 20:11:58 2008 @@ -16,7 +16,7 @@ * @author Stephan Schmidt (original XML_Unserializer code) * @copyright 1997-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: XMLParser.php,v 1.13 2008/01/03 20:26:36 cellog Exp $ + * @version CVS: $Id: XMLParser.php,v 1.14 2008/07/11 20:11:58 dufuz Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -93,7 +93,7 @@ } $xp = xml_parser_create('ISO-8859-1'); } else { - if (strpos($data, 'encoding="UTF-8"')) { + if (stripos($data, 'encoding="UTF-8"')) { $xp = xml_parser_create('UTF-8'); } else { $xp = xml_parser_create('ISO-8859-1');

« previous php.pear.core (#7627) next »