com php-src: Enable pcre valgrind support only in DEBUG build (it affects performance): ext/pcre/config0.m4

From: Date: Mon, 27 May 2019 13:20:20 +0000
Subject: com php-src: Enable pcre valgrind support only in DEBUG build (it affects performance): ext/pcre/config0.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106339@lists.php.net to get a copy of this message
Commit: 6a4ec6c7e4382dcffe0f150468271299704cf4e3 Author: Dmitry Stogov <dmitry@zend.com> Mon, 27 May 2019 16:20:20 +0300 Parents: a8f4e8fe7349f64c42bfb961de46bf66d7b1a96e Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6a4ec6c7e4382dcffe0f150468271299704cf4e3 Log: Enable pcre valgrind support only in DEBUG build (it affects performance) Changed paths: M ext/pcre/config0.m4 Diff: diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 index aed5776..714a8d5 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

« previous php.cvs (#106339) next »