]>
Commit | Line | Data |
---|---|---|
14a99220 AM |
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 | } |