Do not return empty rows when probing loaded php modules

This commit is contained in:
Scott Ullrich 2008-12-23 00:04:45 +00:00
parent de96a79086
commit 3937f1493b

View File

@ -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