mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not return empty rows when probing loaded php modules
This commit is contained in:
parent
de96a79086
commit
3937f1493b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user