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