summaryrefslogtreecommitdiffstats
path: root/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-23 00:04:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-23 00:04:45 +0000
commit3937f1493b3cb89e06d66887b0e70924daffc53b (patch)
treeba15a82ca2674d87881e9164b5131d14e6e90caf /etc/rc.php_ini_setup
parentde96a790868c520e75bdec5f0c344fcf7fe3f85b (diff)
downloadpfsense-3937f1493b3cb89e06d66887b0e70924daffc53b.zip
pfsense-3937f1493b3cb89e06d66887b0e70924daffc53b.tar.gz
Do not return empty rows when probing loaded php modules
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-xetc/rc.php_ini_setup4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup
index a3317db..49699e2 100755
--- a/etc/rc.php_ini_setup
+++ b/etc/rc.php_ini_setup
@@ -1,7 +1,7 @@
#!/bin/sh
#
# rc.php_ini_setup
-# Copyright (C)2008 Scott K Ullrich
+# Copyright (C)2008 Scott K Ullrich <sullrich@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -62,7 +62,7 @@ PHPMODULES="apc \
zlib"
# Get a loaded module list in the stock php
-LOADED_MODULES=`php -m | grep -v "\["`
+LOADED_MODULES=`php -m | grep -v "\[" | grep "[a-z][A-Z]"`
# Populate a dummy php.ini to avoid
# the file being clobbered and the firewall
OpenPOWER on IntegriCloud