We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee87de6 + 17aae13 commit 11927caCopy full SHA for 11927ca
ext/pcre/php_pcre.c
@@ -193,6 +193,13 @@ static void php_pcre_efree(void *block, void *data)
193
efree(block);
194
}
195
196
+#ifdef PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK
197
+ /* pcre 10.38 needs PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK, disabled by default */
198
+#define PHP_PCRE_DEFAULT_EXTRA_COPTIONS PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK
199
+#else
200
+#define PHP_PCRE_DEFAULT_EXTRA_COPTIONS 0
201
+#endif
202
+
203
#define PHP_PCRE_PREALLOC_MDATA_SIZE 32
204
205
static void php_pcre_init_pcre2(uint8_t jit)
@@ -213,6 +220,8 @@ static void php_pcre_init_pcre2(uint8_t jit)
213
220
214
221
215
222
223
+ pcre2_set_compile_extra_options(cctx, PHP_PCRE_DEFAULT_EXTRA_COPTIONS);
224
216
225
if (!mctx) {
217
226
mctx = pcre2_match_context_create(gctx);
218
227
0 commit comments