summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2004-06-15 22:38:18 +0000
committerStefan Esser <sesser@php.net>2004-06-15 22:38:18 +0000
commit585628ba672eaf7524d997b73040d1492771a2fd (patch)
tree948bc187d75e2a7fdbd732a5877fb1c944b46403
parent47c72816d33844887aad3729403ca69879bafbeb (diff)
downloadphp-git-585628ba672eaf7524d997b73040d1492771a2fd.tar.gz
Fixed: made 3rd parameter to strrpos 64bit safe.
-rw-r--r--ext/standard/string.c3
1 files changed, 2 insertions, 1 deletions
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) {