felipe Fri Jul 11 12:25:38 2008 UTC
Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/strings bug45485.phpt
Modified files:
/php-src/ext/standard string.c
Log:
- MFB: Fixed bug #45485 (strip_tags and <?XML tag)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.69.2.29&r2=1.445.2.14.2.69.2.30&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.445.2.14.2.69.2.29
php-src/ext/standard/string.c:1.445.2.14.2.69.2.30
--- php-src/ext/standard/string.c:1.445.2.14.2.69.2.29 Thu Jul 3 14:00:20 2008
+++ php-src/ext/standard/string.c Fri Jul 11 12:25:37 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.445.2.14.2.69.2.29 2008/07/03 14:00:20 tony2001 Exp $ */
+/* $Id: string.c,v 1.445.2.14.2.69.2.30 2008/07/11 12:25:37 felipe Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -4413,12 +4413,13 @@
/* fall-through */
case 'l':
+ case 'L':
/* swm: If we encounter '<?xml' then we
shouldn't be in
* state == 2 (PHP). Switch back to HTML.
*/
- if (state == 2 && p > buf+2 && *(p-1) == 'm' &&
*(p-2) == 'x') {
+ if (state == 2 && p > buf+2 && strncasecmp(p-2,
"xm", 2) == 0) {
state = 1;
break;
}
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug45485.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/strings/bug45485.phpt
+++ php-src/ext/standard/tests/strings/bug45485.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php