]> granicus.if.org Git - php/commitdiff
Enable pcre valgrind support only in DEBUG build (it affects performance)
authorDmitry Stogov <dmitry@zend.com>
Mon, 27 May 2019 13:20:20 +0000 (16:20 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 27 May 2019 13:20:20 +0000 (16:20 +0300)
ext/pcre/config0.m4

index aed5776e4550464038f27aae189f5bfeb390f843..714a8d57e8a86609d96e71d81974e0d1653a206f 100644 (file)
@@ -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