From 7030262c70735f144553b62826c71515c960f0ad Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Aug 2010 21:45:01 -0400 Subject: Take into account capital letters in the module name such as S in pfSense --- etc/rc.php_ini_setup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 9fd6b39..5479eed 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -259,9 +259,13 @@ if [ -f /var/run/php_modules_load_errors.txt ]; then rm /var/run/php_modules_load_errors.txt fi +for EXT in $PHPMODULES; do + PHPMODULESLC="$PHPMODULESLC `echo "$EXT" | tr '[:upper:]' '[:lower:]'`" +done + # Check loaded modules and remove anything that did not load correctly LOADED_MODULES=`php -m | tr '[:upper:]' '[:lower:]' 2>/dev/null | grep -v "\["` -for EXT in $PHPMODULES; do +for EXT in $PHPMODULESLC; do SHOULDREMOVE="true" for LM in $LOADED_MODULES; do if [ "$EXT" = "$LM" ]; then -- cgit v1.1