Re: com php-src: Allow to disable pcre.jit when system library is used as it isfor now broken on some arch (s390x...): ext/pcre/config0.m4

From: Date: Thu, 04 Oct 2018 10:47:54 +0000
Subject: Re: com php-src: Allow to disable pcre.jit when system library is used as it isfor now broken on some arch (s390x...): ext/pcre/config0.m4
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103355@lists.php.net to get a copy of this message
On 04.10.2018 at 11:45, Remi Collet wrote: > Commit: bbfea4b470f30b3d92ad73e4addf37c3e247052a > Author: Remi Collet <remi@php.net> Thu, 4 Oct 2018 11:45:35 +0200 > Parents: 2e984dc72690b0aff1fdc55736b3f8dca1bf2753 > Branches: PHP-7.3 master > > Link: > http://git.php.net/?p=php-src.git;a=commitdiff;h=bbfea4b470f30b3d92ad73e4addf37c3e247052a > > Log: > Allow to disable pcre.jit when system library is used > as it is for now broken on some arch (s390x...) > > Changed paths: > M ext/pcre/config0.m4 > > > Diff: > diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 > index dd1b7d5..3f7f04d 100644 > --- a/ext/pcre/config0.m4 > +++ b/ext/pcre/config0.m4 > @@ -47,13 +47,15 @@ PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT > functionality > fi > fi > > - PHP_CHECK_LIBRARY(pcre2-8, pcre2_jit_compile_8, > - [ > - AC_DEFINE(HAVE_PCRE_JIT_SUPPORT, 1, [ ]) > - ],[ > - ],[ > - $PCRE2_LIB > - ]) > + if test "$PHP_PCRE_JIT" != "no"; then > + PHP_CHECK_LIBRARY(pcre2-8, pcre2_jit_compile_8, > + [ > + AC_DEFINE(HAVE_PCRE_JIT_SUPPORT, 1, [ ]) > + ],[ > + ],[ > + $PCRE2_LIB > + ]) > + fi > > PHP_EVAL_INCLINE($PCRE2_INC) > PHP_EVAL_LIBLINE($PCRE2_LIB) We already have the INI option pcre.jit – do we need to add a compile time flag? -- Christoph M. Becker

« previous php.cvs (#103355) next »