Skip to content

Commit

Permalink
fix xdebug configuration for php 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-bjoern committed Apr 2, 2024
1 parent 5bb9777 commit cffaafa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ echo -e "******************************"
[[ -z "$XDEBUG_REMOTE_HOST" ]] && XDEBUG_REMOTE_HOST="$VM_HOST_IP"
[[ -z "$XDEBUG_IDE_KEY" ]] && XDEBUG_IDE_KEY="mykey"
if [ ! -z "$XDEBUG_INSTALL" ] && [ ! -f /.deployed_xdebug ]; then
if [ ! -f /etc/php81/conf.d/50_xdebug.ini ]; then
echo -e "zend_extension=xdebug.so\nxdebug.mode=debug,profile\nxdebug.client_host=$XDEBUG_REMOTE_HOST\nxdebug.client_port=9000\nxdebug.start_with_request=trigger\nxdebug.output_dir=/var/www/html/var\nxdebug.max_nesting_level=500\n" > /etc/php81/conf.d/50_xdebug.ini
if [ ! -f /etc/php82/conf.d/50_xdebug.ini ]; then
echo -e "zend_extension=xdebug.so\nxdebug.mode=debug,profile\nxdebug.client_host=$XDEBUG_REMOTE_HOST\nxdebug.client_port=9000\nxdebug.start_with_request=trigger\nxdebug.output_dir=/var/www/html/var\nxdebug.max_nesting_level=500\n" > /etc/php82/conf.d/50_xdebug.ini
echo -e "export export XDEBUG_SESSION=\"$XDEBUG_IDE_KEY\"" >> /root/.bashrc
fi
apk --no-cache add php81-xdebug
apk --no-cache add php82-xdebug
touch /.deployed_xdebug
fi

Expand Down

0 comments on commit cffaafa

Please sign in to comment.