sesser          Tue Jun 15 18:38:18 2004 EDT

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  Fixed: made 3rd parameter to strrpos 64bit safe.
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.416&r2=1.417&ty=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.416 php-src/ext/standard/string.c:1.417
--- php-src/ext/standard/string.c:1.416 Thu May 13 13:44:23 2004
+++ php-src/ext/standard/string.c       Tue Jun 15 18:38:18 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.416 2004/05/13 17:44:23 iliaa Exp $ */
+/* $Id: string.c,v 1.417 2004/06/15 22:38:18 sesser Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -1587,7 +1587,8 @@
 {
        zval *zneedle;
        char *needle, *haystack;
-       int needle_len, haystack_len, offset = 0;
+       int needle_len, haystack_len;
+       long offset = 0;
        char *p, *e, ord_needle[2];
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|l", &haystack, 
&haystack_len, &zneedle, &offset) == FAILURE) {

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

Reply via email to