Make xdebug version-aware

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-01-06 18:36:49 +01:00
parent a6973ace15
commit 4ddeb426d2
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash
VERSION=$1
shift 1
COMMAND=$1;
shift 1
@ -12,4 +15,4 @@ if [ ! -f "${COMMAND}" ]; then
exit 1;
fi
PHP_IDE_CONFIG="serverName=local" XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=127.0.0.1 remote_connect_back=0" php -d zend_extension=xdebug.so $COMMAND "$@"
PHP_IDE_CONFIG="serverName=local" XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=127.0.0.1 remote_connect_back=0" php$VERSION -d zend_extension=xdebug.so $COMMAND "$@"