Only lower-case the xdebug seting name and NOT it's value
This commit is contained in:
parent
3d50758773
commit
573187ea6b
1 changed files with 5 additions and 5 deletions
|
@ -31,11 +31,11 @@ fi
|
|||
# Configure or disable XDebug as requested
|
||||
XDEBUG_INI="/usr/local/etc/php/conf.d/10-xdebug.ini"
|
||||
if [ ${XDEBUG} = true ] || [ "${XDEBUG}" == "1" ]; then
|
||||
env \
|
||||
| egrep '^XDEBUG_' \
|
||||
| sed -e 's/XDEBUG_/xdebug./' \
|
||||
| tr 'A-Z' 'a-z' \
|
||||
>> "${XDEBUG_INI}"
|
||||
for setting in $(env | egrep '^XDEBUG_'); do
|
||||
key=$(echo "${setting}" | cut -d'=' -f1 | sed -e 's/XDEBUG_/xdebug./' | tr 'A-Z' 'a-z')
|
||||
value=$(echo "${setting}" | cut -d'=' -f2-)
|
||||
echo "${key}=${value}" >> "${XDEBUG_INI}"
|
||||
done
|
||||
else
|
||||
rm -f "${XDEBUG_INI}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue