summaryrefslogtreecommitdiffstats
path: root/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-08-22 21:36:09 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-08-22 21:36:09 -0400
commit90108d9044037e3aa62e96c57fc2f2be702e0095 (patch)
treebc671a48f03fb88d0f250b2f14a8023902b53f5e /etc/rc.php_ini_setup
parent52e65de17fe62ab448e73ba10347cba7d2fcdb74 (diff)
downloadpfsense-90108d9044037e3aa62e96c57fc2f2be702e0095.zip
pfsense-90108d9044037e3aa62e96c57fc2f2be702e0095.tar.gz
Fix a rather annoying bug where case would cause a module to not be detected as being loaded such as SQLite
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-xetc/rc.php_ini_setup3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup
index ef24d54..9fd6b39 100755
--- a/etc/rc.php_ini_setup
+++ b/etc/rc.php_ini_setup
@@ -113,6 +113,7 @@ PHPMODULES="apc \
# Page compression
zlib \
# SQLlite
+ simplexml \
spl \
pdo \
sqlite \
@@ -259,7 +260,7 @@ if [ -f /var/run/php_modules_load_errors.txt ]; then
fi
# Check loaded modules and remove anything that did not load correctly
-LOADED_MODULES=`php -m 2>/dev/null | grep -v "\["`
+LOADED_MODULES=`php -m | tr '[:upper:]' '[:lower:]' 2>/dev/null | grep -v "\["`
for EXT in $PHPMODULES; do
SHOULDREMOVE="true"
for LM in $LOADED_MODULES; do
OpenPOWER on IntegriCloud