com php-src: Fixed bug #75781 (substr_count incorrect r esult): NEWS ext/standard/string.c

From: Date: Tue, 09 Jan 2018 08:21:02 +0000
Subject: com php-src: Fixed bug #75781 (substr_count incorrect r esult): NEWS ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100814@lists.php.net to get a copy of this message
Commit: 6da44fefb2065e28c6329f45b40c5611f86f4bf3 Author: Xinchen Hui <laruence@gmail.com> Tue, 9 Jan 2018 16:20:19 +0800 Parents: 1448f0912f088c9da7270b94875225b6cc4993e6 Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6da44fefb2065e28c6329f45b40c5611f86f4bf3 Log: Fixed bug #75781 (substr_count incorrect result) Bugs: https://bugs.php.net/75781 Changed paths: M NEWS M ext/standard/string.c Diff: diff --git a/NEWS b/NEWS index 8ef2841..67dfb46 100644 --- a/NEWS +++ b/NEWS @@ -31,6 +31,9 @@ PHP NEWS . Fixed bug #73209 (RecursiveArrayIterator does not iterate object properties). (Nikita) +- Standard: + . Fixed bug #75781 (substr_count incorrect result). (Laruence) + 04 Jan 2018, PHP 7.1.13 - Core: diff --git a/ext/standard/string.c b/ext/standard/string.c index 60288a7..922d4fc 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;

« previous php.cvs (#100814) next »