@@ -888,7 +888,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, size_t sub
888888 uint32_t subpats_order ; /* Order of subpattern matches */
889889 uint32_t offset_capture ; /* Capture match offsets: yes/no */
890890 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 */
892892 zval marks ; /* Array of marks for PREG_PATTERN_ORDER */
893893 pcre2_match_data * match_data ;
894894 size_t jit_size ;
@@ -1315,7 +1315,7 @@ static int preg_get_backref(char **str, int *backref)
13151315
13161316/* {{{ preg_do_repl_func
13171317 */
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 )
13191319{
13201320 zend_string * result_str ;
13211321 zval retval ; /* Function return value */
@@ -1641,7 +1641,7 @@ static zend_string *php_pcre_replace_func_impl(pcre_cache_entry *pce, zend_strin
16411641 char * match , /* The current match */
16421642 * piece ; /* The current piece of subject */
16431643 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 */
16451645 zend_string * result ; /* Result of replacement */
16461646 zend_string * eval_result = NULL ; /* Result of custom function */
16471647 pcre2_match_data * match_data ;
0 commit comments