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