Skip to content

Commit 3594d84

Browse files
committed
Fix PCRE compilation
1 parent 19c00d6 commit 3594d84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/pcre/php_pcre.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,10 +1610,10 @@ PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *su
16101610
size_t last_end_offset; /* Where the last search ended */
16111611
char *walkbuf, /* Location of current replacement in the result */
16121612
*walk, /* Used to walk the replacement string */
1613-
*match, /* The current match */
1614-
*piece, /* The current piece of subject */
1615-
*replace_end, /* End of replacement string */
16161613
walk_last; /* Last walked character */
1614+
const char *match, /* The current match */
1615+
*piece, /* The current piece of subject */
1616+
*replace_end; /* End of replacement string */
16171617
size_t result_len; /* Length of result */
16181618
zend_string *result; /* Result of replacement */
16191619
pcre2_match_data *match_data;
@@ -1849,7 +1849,7 @@ static zend_string *php_pcre_replace_func_impl(pcre_cache_entry *pce, zend_strin
18491849
size_t alloc_len; /* Actual allocated length */
18501850
PCRE2_SIZE start_offset; /* Where the new search starts */
18511851
size_t last_end_offset; /* Where the last search ended */
1852-
char *match, /* The current match */
1852+
const char *match, /* The current match */
18531853
*piece; /* The current piece of subject */
18541854
size_t result_len; /* Length of result */
18551855
zend_string *result; /* Result of replacement */

0 commit comments

Comments
 (0)