tony2001 Tue Mar 14 15:15:22 2006 UTC Modified files: (Branch: PHP_5_1) /php-src/ext/standard string.c Log: MFH: add brackets and clarity http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.445.2.11&r2=1.445.2.12&diff_format=u Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.445.2.11 php-src/ext/standard/string.c:1.445.2.12 --- php-src/ext/standard/string.c:1.445.2.11 Tue Mar 14 14:55:13 2006 +++ php-src/ext/standard/string.c Tue Mar 14 15:15:22 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.445.2.11 2006/03/14 14:55:13 iliaa Exp $ */ +/* $Id: string.c,v 1.445.2.12 2006/03/14 15:15:22 tony2001 Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -4884,7 +4884,7 @@ RETURN_FALSE; } - 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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php