felipe          Fri Jul 11 12:16:06 2008 UTC

  Added files:                 (Branch: PHP_5_2)
    /php-src/ext/standard/tests/strings bug45485.phpt 

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  - 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.74&r2=1.445.2.14.2.75&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.445.2.14.2.74 
php-src/ext/standard/string.c:1.445.2.14.2.75
--- php-src/ext/standard/string.c:1.445.2.14.2.74       Fri May  9 12:59:41 2008
+++ php-src/ext/standard/string.c       Fri Jul 11 12:16:05 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.445.2.14.2.74 2008/05/09 12:59:41 scottmac Exp $ */
+/* $Id: string.c,v 1.445.2.14.2.75 2008/07/11 12:16:05 felipe Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -4519,12 +4519,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

Reply via email to