Skip to content

Commit 63161cf

Browse files
committed
Revert "fix for pcre2 10.38"
This reverts commit dd61002.
1 parent 1ce79eb commit 63161cf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ext/pcre/php_pcre.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,6 @@ static void php_pcre_efree(void *block, void *data)
199199
efree(block);
200200
}
201201

202-
#ifdef PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK
203-
/* pcre 10.38 needs PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK, disabled by default */
204-
#define PHP_PCRE_DEFAULT_EXTRA_COPTIONS PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK
205-
#else
206-
#define PHP_PCRE_DEFAULT_EXTRA_COPTIONS 0
207-
#endif
208-
209202
#define PHP_PCRE_PREALLOC_MDATA_SIZE 32
210203

211204
static void php_pcre_init_pcre2(uint8_t jit)
@@ -226,8 +219,6 @@ static void php_pcre_init_pcre2(uint8_t jit)
226219
}
227220
}
228221

229-
pcre2_set_compile_extra_options(cctx, PHP_PCRE_DEFAULT_EXTRA_COPTIONS);
230-
231222
if (!mctx) {
232223
mctx = pcre2_match_context_create(gctx);
233224
if (!mctx) {

0 commit comments

Comments
 (0)