diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-05-27 16:20:20 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-05-27 16:20:20 +0300 |
commit | 6a4ec6c7e4382dcffe0f150468271299704cf4e3 (patch) | |
tree | b24fbbb2778832650613b16a36a81542f1feb075 | |
parent | a8f4e8fe7349f64c42bfb961de46bf66d7b1a96e (diff) | |
download | php-git-6a4ec6c7e4382dcffe0f150468271299704cf4e3.tar.gz |
Enable pcre valgrind support only in DEBUG build (it affects performance)
-rw-r--r-- | ext/pcre/config0.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
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 |