com php-src: Revert "Revert "fix #72143 (preg_replace use s int instead of size_t on zend_string_allocs )"": ext/pcre/php_pcre.c

From: Date: Mon, 16 May 2016 13:22:13 +0000
Subject: com php-src: Revert "Revert "fix #72143 (preg_replace use s int instead of size_t on zend_string_allocs )"": ext/pcre/php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92148@lists.php.net to get a copy of this message
Commit: 0b3a4c6101abeef297bfb415493e96bbeda3d110 Author: Xinchen Hui <laruence@gmail.com> Mon, 16 May 2016 06:21:11 -0700 Parents: 8578fb994b9df936dd32ff641d1abd985d810a97 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0b3a4c6101abeef297bfb415493e96bbeda3d110 Log: Revert "Revert "fix #72143 (preg_replace uses int instead of size_t on zend_string_allocs)"" obviously I read the change is in argument lists by mistake :< This reverts commit 9e7afa75140afd047cb95280a610cff9368a7517. Bugs: https://bugs.php.net/72143 Changed paths: M ext/pcre/php_pcre.c Diff: diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index f6f8630..ed0f3b3 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1119,8 +1119,8 @@ PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *su char **subpat_names; /* Array for named subpatterns */ int num_subpats; /* Number of captured subpatterns */ int size_offsets; /* Size of the offsets array */ - int new_len; /* Length of needed storage */ - int alloc_len; /* Actual allocated length */ + size_t new_len; /* Length of needed storage */ + size_t alloc_len; /* Actual allocated length */ int match_len; /* Length of the current match */ int backref; /* Backreference number */ int start_offset; /* Where the new search starts */

« previous php.cvs (#92148) next »