From: Dmitry Stogov Date: Mon, 27 May 2019 13:20:20 +0000 (+0300) Subject: Enable pcre valgrind support only in DEBUG build (it affects performance) X-Git-Tag: php-7.4.0alpha1~188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a4ec6c7e4382dcffe0f150468271299704cf4e3;p=php Enable pcre valgrind support only in DEBUG build (it affects performance) --- diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 index aed5776e45..714a8d57e8 100644 --- a/ext/pcre/config0.m4 +++ b/ext/pcre/config0.m4 @@ -83,6 +83,9 @@ else fi if test "$PHP_VALGRIND" != "no" && test "$have_valgrind" = "yes"; then - AC_DEFINE(HAVE_PCRE_VALGRIND_SUPPORT, 1, [ ]) + dnl Enable pcre valgrind support only in DEBUG build (it affects performance) + if test "$ZEND_DEBUG" = "yes"; then + AC_DEFINE(HAVE_PCRE_VALGRIND_SUPPORT, 1, [ ]) + fi fi fi