summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-01 10:43:24 -0300
committerRenato Botelho <renato@netgate.com>2015-09-01 10:43:24 -0300
commita5c53d26211cf4dee67b7d0997d843f0dacb771d (patch)
tree10ec47a4c8050e2d3719b862ade9c294361794c1 /src/etc/rc.php_ini_setup
parente74b64a1ae7dd9c430c64457bd3d06e7eae6e0c6 (diff)
downloadpfsense-a5c53d26211cf4dee67b7d0997d843f0dacb771d.zip
pfsense-a5c53d26211cf4dee67b7d0997d843f0dacb771d.tar.gz
Do not explicit add opcache to zend_extension, just enable or disable it
Diffstat (limited to 'src/etc/rc.php_ini_setup')
-rwxr-xr-xsrc/etc/rc.php_ini_setup9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/etc/rc.php_ini_setup b/src/etc/rc.php_ini_setup
index 3d53233..6d9e77f 100755
--- a/src/etc/rc.php_ini_setup
+++ b/src/etc/rc.php_ini_setup
@@ -139,10 +139,6 @@ PHPMODULES="$PHPMODULES filter"
PHP_ZEND_MODULES=""
-if [ "$LOWMEM" != "TRUE" ]; then
- PHP_ZEND_MODULES="$PHP_ZEND_MODULES opcache"
-fi
-
# Modules previously included.
# can be turned on by touching
# /etc/php_dynamodules/$modulename
@@ -242,6 +238,11 @@ opcache.enable_cli="0"
opcache.memory_consumption="${OPCACHEMEMSIZE}"
EOF
+else
+ /bin/cat >>/usr/local/lib/php.ini <<EOF
+; opcache Settings
+opcache.enabled="0"
+EOF
fi
/bin/cat >>/usr/local/lib/php.ini <<EOF
OpenPOWER on IntegriCloud