Skip to content

Commit

Permalink
fix for pcre2 10.38
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Oct 21, 2021
1 parent 6ab9b38 commit 56495ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/pcre/php_pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,13 @@ static void php_pcre_free(void *block, void *data)
pefree(block, 1);
}/*}}}*/

#ifdef PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK
/* pcre 10.38 needs PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK, disabled by default */
#define PHP_PCRE_DEFAULT_EXTRA_COPTIONS (PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL|PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK)
#else
#define PHP_PCRE_DEFAULT_EXTRA_COPTIONS PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL
#endif

#define PHP_PCRE_PREALLOC_MDATA_SIZE 32

static void php_pcre_init_pcre2(uint8_t jit)
Expand Down

0 comments on commit 56495ac

Please sign in to comment.