nlopess         Fri Apr 10 15:47:15 2009 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/pcre/tests     bug47662.phpt 

  Modified files:              
    /php-src/ext/pcre   php_pcre.c 
  Log:
  fix bug #47662: support more than 127 named subpatterns
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.168.2.9.2.21.2.30&r2=1.168.2.9.2.21.2.31&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.168.2.9.2.21.2.30 
php-src/ext/pcre/php_pcre.c:1.168.2.9.2.21.2.31
--- php-src/ext/pcre/php_pcre.c:1.168.2.9.2.21.2.30     Wed Jan 28 22:39:30 2009
+++ php-src/ext/pcre/php_pcre.c Fri Apr 10 15:47:15 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_pcre.c,v 1.168.2.9.2.21.2.30 2009/01/28 22:39:30 nlopess Exp $ */
+/* $Id: php_pcre.c,v 1.168.2.9.2.21.2.31 2009/04/10 15:47:15 nlopess Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -209,7 +209,7 @@
                }
 
                while (ni++ < name_cnt) {
-                       name_idx = 0xff * name_table[0] + name_table[1];
+                       name_idx = 0xff * (unsigned char)name_table[0] + 
(unsigned char)name_table[1];
                        subpat_names[name_idx] = name_table + 2;
                        if (is_numeric_string(subpat_names[name_idx], 
strlen(subpat_names[name_idx]), NULL, NULL, 0) > 0) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"Numeric named subpatterns are not allowed");

http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/bug47662.phpt?view=markup&rev=1.1
Index: php-src/ext/pcre/tests/bug47662.phpt
+++ php-src/ext/pcre/tests/bug47662.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to