yiisoft / yii2-docker

Official Docker images suitable for Yii 2.0
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
382 stars 202 forks source link

The Xdebug installed is the master branch (v3.0.0-dev) and not the latest stable (v2.9.6) #96

Closed Sarke closed 4 years ago

Sarke commented 4 years ago

The Xdebug installed is the master branch (v3.0.0-dev) and not the latest stable (v2.9.6). Is this correct?

To replicate: docker run --rm --env PHP_ENABLE_XDEBUG=1 yiisoftware/yii2-php:7.4-apache php -r 'echo phpversion("xdebug");'

I noticed it because I was no longer able to connect to the remote debugger anymore. Using the latest stable fixed the problem.

Also, why not install it using pecl? pecl install xdebug

samdark commented 4 years ago

Pecl should be better option, I think.

basyan commented 4 years ago

and I can't change the xdebug version because the env variable is VERSION_XDEBUG, but below in dockerfile git checkout ${XDEBUG_VERSION}