com php-src: remove useless check: ext/standard/string.c

From: Date: Mon, 29 Jun 2015 10:15:20 +0000
Subject: com php-src: remove useless check: ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87616@lists.php.net to get a copy of this message
Commit: c2ac0304a9699dfa41d87bdfcdd93585003eb8d3 Author: Anatol Belski <ab@php.net> Mon, 29 Jun 2015 11:24:11 +0200 Parents: 8ccf29eb04ff47f87a98a4d720768aa108ccc67a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c2ac0304a9699dfa41d87bdfcdd93585003eb8d3 Log: remove useless check thanks Yasuo :) Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index ba402e3..0a5e8be 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2484,7 +2484,7 @@ PHP_FUNCTION(substr_replace) * of the string */ if (f < 0) { - if (f < 0 && -f > Z_STRLEN_P(str)) { + if (-f > Z_STRLEN_P(str)) { f = 0; } else { f = Z_STRLEN_P(str) + f;

« previous php.cvs (#87616) next »