From: Stefan Esser Date: Tue, 15 Jun 2004 22:38:18 +0000 (+0000) Subject: Fixed: made 3rd parameter to strrpos 64bit safe. X-Git-Tag: php-5.0.0~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=585628ba672eaf7524d997b73040d1492771a2fd;p=php Fixed: made 3rd parameter to strrpos 64bit safe. --- diff --git a/ext/standard/string.c b/ext/standard/string.c index b328dcf786..464c6a798c 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1587,7 +1587,8 @@ PHP_FUNCTION(strrpos) { 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) {