tony2001                Tue Mar 14 15:14:59 2006 UTC

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  add brackets and clarity
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.527&r2=1.528&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.527 php-src/ext/standard/string.c:1.528
--- php-src/ext/standard/string.c:1.527 Tue Mar 14 14:55:27 2006
+++ php-src/ext/standard/string.c       Tue Mar 14 15:14:59 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.527 2006/03/14 14:55:27 iliaa Exp $ */
+/* $Id: string.c,v 1.528 2006/03/14 15:14:59 tony2001 Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -6492,7 +6492,7 @@
                offset = s1_len + 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;
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to