@@ -888,7 +888,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, size_t sub
888
888
uint32_t subpats_order ; /* Order of subpattern matches */
889
889
uint32_t offset_capture ; /* Capture match offsets: yes/no */
890
890
uint32_t unmatched_as_null ; /* Null non-matches: yes/no */
891
- PCRE2_SPTR * mark = NULL ; /* Target for MARK name */
891
+ PCRE2_SPTR mark = NULL ; /* Target for MARK name */
892
892
zval marks ; /* Array of marks for PREG_PATTERN_ORDER */
893
893
pcre2_match_data * match_data ;
894
894
size_t jit_size ;
@@ -1315,7 +1315,7 @@ static int preg_get_backref(char **str, int *backref)
1315
1315
1316
1316
/* {{{ preg_do_repl_func
1317
1317
*/
1318
- static zend_string * preg_do_repl_func (zend_fcall_info * fci , zend_fcall_info_cache * fcc , char * subject , PCRE2_SIZE * offsets , char * * subpat_names , int count , PCRE2_SPTR * mark )
1318
+ static zend_string * preg_do_repl_func (zend_fcall_info * fci , zend_fcall_info_cache * fcc , char * subject , PCRE2_SIZE * offsets , char * * subpat_names , int count , const PCRE2_SPTR mark )
1319
1319
{
1320
1320
zend_string * result_str ;
1321
1321
zval retval ; /* Function return value */
@@ -1641,7 +1641,7 @@ static zend_string *php_pcre_replace_func_impl(pcre_cache_entry *pce, zend_strin
1641
1641
char * match , /* The current match */
1642
1642
* piece ; /* The current piece of subject */
1643
1643
size_t result_len ; /* Length of result */
1644
- PCRE2_SPTR * mark = NULL ; /* Target for MARK name */
1644
+ PCRE2_SPTR mark = NULL ; /* Target for MARK name */
1645
1645
zend_string * result ; /* Result of replacement */
1646
1646
zend_string * eval_result = NULL ; /* Result of custom function */
1647
1647
pcre2_match_data * match_data ;
0 commit comments