summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-04-25 13:59:37 -0300
committerRenato Botelho <renato@netgate.com>2016-04-25 13:59:37 -0300
commit45c4bc38c9d3aa9e1bd164d79cb47d03395e12c3 (patch)
treed70ca0e9a9b4eb6ea3c3255d9a4bf87374d4cf40 /src/etc/rc.php_ini_setup
parent4b0c907b9a835aa951d0efc6a914294dd96f5d09 (diff)
downloadpfsense-45c4bc38c9d3aa9e1bd164d79cb47d03395e12c3.zip
pfsense-45c4bc38c9d3aa9e1bd164d79cb47d03395e12c3.tar.gz
Reduce log level for RELEASE versions. Fixes #6178
Diffstat (limited to 'src/etc/rc.php_ini_setup')
-rwxr-xr-xsrc/etc/rc.php_ini_setup8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etc/rc.php_ini_setup b/src/etc/rc.php_ini_setup
index a3cc7ed3..a4dc8cb 100755
--- a/src/etc/rc.php_ini_setup
+++ b/src/etc/rc.php_ini_setup
@@ -27,6 +27,7 @@
# Set our operating platform
PLATFORM=`/bin/cat /etc/platform`
+VERSION=`/bin/cat /etc/version`
MIN_REALMEM_FOR_OPCACHE=512
EXTENSIONSDIR="/usr/local/lib/php/20131226/"
@@ -173,6 +174,12 @@ if [ -z "${TIMEZONE}" ]; then
TIMEZONE=$(/usr/local/sbin/read_global_var default_timezone "Etc/UTC")
fi
+if echo "${VERSION}" | grep -q RELEASE; then
+ error_reporting="error_reporting = E_ERROR | E_PARSE"
+else
+ error_reporting=""
+fi
+
# Get a loaded module list in the stock php
# Populate a dummy php.ini to avoid
# the file being clobbered and the firewall
@@ -205,6 +212,7 @@ extension_dir=${EXTENSIONSDIR}
date.timezone="${TIMEZONE}"
session.hash_bits_per_character = 5
session.hash_function = 1
+${error_reporting}
; Extensions
OpenPOWER on IntegriCloud