summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-05-27 16:20:20 +0300
committerDmitry Stogov <dmitry@zend.com>2019-05-27 16:20:20 +0300
commit6a4ec6c7e4382dcffe0f150468271299704cf4e3 (patch)
treeb24fbbb2778832650613b16a36a81542f1feb075
parenta8f4e8fe7349f64c42bfb961de46bf66d7b1a96e (diff)
downloadphp-git-6a4ec6c7e4382dcffe0f150468271299704cf4e3.tar.gz
Enable pcre valgrind support only in DEBUG build (it affects performance)
-rw-r--r--ext/pcre/config0.m45
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