Skip to content

Commit

Permalink
FEATURE: support xdebug for PHP 7.2 upwards
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfuerst committed Apr 23, 2023
1 parent ded7c19 commit 89fa6a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/xdebug.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ func convertToTopLevelExport(exportedPath string) string {
// (important for the `make install` step).
// - reload the config
func phpXdebugInstallScript(pid string, extraMountFolders string) string {
// fall back to xdebug 3.1.6 for PHP 7.4 if xdebug 3.2 (the newest version) did not work
return mountSlashContainer + `
cat << EOF | chroot /container
pecl install xdebug
pecl install xdebug || pecl install xdebug-3.1.6
EOF
cat << EOF > /container$PHP_INI_DIR/conf.d/xdebug.ini
Expand Down

0 comments on commit 89fa6a1

Please sign in to comment.