diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-01-09 16:20:19 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-01-09 16:21:02 +0800 |
commit | 6da44fefb2065e28c6329f45b40c5611f86f4bf3 (patch) | |
tree | 322d839aa8d56e243cf1ee7bbe2fbc58267f00fd /ext/standard/string.c | |
parent | 1448f0912f088c9da7270b94875225b6cc4993e6 (diff) | |
download | php-git-6da44fefb2065e28c6329f45b40c5611f86f4bf3.tar.gz |
Fixed bug #75781 (substr_count incorrect result)
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 60288a7ce3..922d4fceaf 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -5192,7 +5192,7 @@ PHP_FUNCTION(substr_count) char *haystack, *needle; zend_long offset = 0, length = 0; int ac = ZEND_NUM_ARGS(); - int count = 0; + zend_long count = 0; size_t haystack_len, needle_len; char *p, *endp, cmp; |