We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c728e52 + 1d34f04 commit ca71376Copy full SHA for ca71376
docker-entrypoint
@@ -18,8 +18,14 @@ fi
18
# Enable Xdebug
19
# Use Xdebug if ENABLE_XDEBUG env is set to 1.
20
if [[ $ENABLE_XDEBUG == "1" ]]; then
21
+ # Check if Xdebug extension is already enabled
22
+ touch /usr/local/lib/php.ini
23
+ grep -xq 'zend_extension\s*=\s*/usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so' /usr/local/lib/php.ini
24
+ if [[ $? != "0" ]]; then
25
+ echo "zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so" >> /usr/local/lib/php.ini
26
+ fi
27
+
28
echo -e "\e[32mXdebug enabled\e[0m"
- echo "zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so" >> /usr/local/lib/php.ini
29
fi
30
31
if [[ $1 == "server" ]]; then
0 commit comments