php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54454
Patch 54454.diff revision 2011-04-03 06:38 UTC by pierrick at webstart dot fr

Patch 54454.diff for Strings related Bug #54454

Patch version 2011-04-03 06:38 UTC

Return to Bug #54454 | Download this patch
Patch Revisions:

Developer: pierrick@webstart.fr

Index: ext/standard/string.c
===================================================================
--- ext/standard/string.c	(revision 309237)
+++ ext/standard/string.c	(working copy)
@@ -5252,10 +5252,6 @@
 		RETURN_FALSE;
 	}
 
-	if (len > s1_len - offset) {
-		len = s1_len - offset;
-	}
-
 	cmp_len = (uint) (len ? len : MAX(s2_len, (s1_len - offset)));
 
 	if (!cs) {
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 19 17:03:13 2022 UTC