]> granicus.if.org Git - php/commitdiff
Fixed: made 3rd parameter to strrpos 64bit safe.
authorStefan Esser <sesser@php.net>
Tue, 15 Jun 2004 22:38:18 +0000 (22:38 +0000)
committerStefan Esser <sesser@php.net>
Tue, 15 Jun 2004 22:38:18 +0000 (22:38 +0000)
ext/standard/string.c

index b328dcf786f816cd3755825c4eaa872f6a1dad02..464c6a798cfc234115b7315b563821745f71822d 100644 (file)
@@ -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) {