]> git.pld-linux.org Git - packages/php.git/blob - php-substr_compare.patch
- bug 37394 fixed
[packages/php.git] / php-substr_compare.patch
1 --- php-src.org/ext/standard/string.c   2006/04/25 12:48:41     1.445.2.14
2 +++ php-src/ext/standard/string.c       2006/05/10 13:07:15     1.445.2.14.2.1
3 @@ -4894,7 +4894,7 @@
4                 offset = (offset < 0) ? 0 : offset;
5         }
6  
7 -       if ((offset + len) >= s1_len) {
8 +       if ((offset + len) > s1_len) {
9                 php_error_docref(NULL TSRMLS_CC, E_WARNING, "The start position cannot exceed initial string length");
10                 RETURN_FALSE;
11         }
This page took 0.046303 seconds and 3 git commands to generate.