]> git.pld-linux.org Git - packages/php.git/commitdiff
- bug 37394 fixed
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 22 Jun 2006 13:07:34 +0000 (13:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-substr_compare.patch -> 1.1

php-substr_compare.patch [new file with mode: 0644]

diff --git a/php-substr_compare.patch b/php-substr_compare.patch
new file mode 100644 (file)
index 0000000..bf61ebe
--- /dev/null
@@ -0,0 +1,11 @@
+--- php-src.org/ext/standard/string.c  2006/04/25 12:48:41     1.445.2.14
++++ php-src/ext/standard/string.c      2006/05/10 13:07:15     1.445.2.14.2.1
+@@ -4894,7 +4894,7 @@
+               offset = (offset < 0) ? 0 : offset;
+       }
+-      if ((offset + len) >= s1_len) {
++      if ((offset + len) > s1_len) {
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "The start position cannot exceed initial string length");
+               RETURN_FALSE;
+       }
This page took 0.781875 seconds and 4 git commands to generate.