Skip to content

Commit 0b3a4c6

Browse files
committed
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 9e7afa7.
1 parent 8578fb9 commit 0b3a4c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pcre/php_pcre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,8 +1119,8 @@ PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *su
11191119
char **subpat_names; /* Array for named subpatterns */
11201120
int num_subpats; /* Number of captured subpatterns */
11211121
int size_offsets; /* Size of the offsets array */
1122-
int new_len; /* Length of needed storage */
1123-
int alloc_len; /* Actual allocated length */
1122+
size_t new_len; /* Length of needed storage */
1123+
size_t alloc_len; /* Actual allocated length */
11241124
int match_len; /* Length of the current match */
11251125
int backref; /* Backreference number */
11261126
int start_offset; /* Where the new search starts */

0 commit comments

Comments
 (0)