View Issue Details

IDProjectCategoryView StatusLast Update
0001924XdebugInstallationpublic2020-12-30 16:37
Reporterspigandromeda Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0.1 
Fixed in Version3.0.2 
Summary0001924: Deprecated INI settings displayed in phpinfo()
Description

I want to upgrade my PHPUnit docker image from XDebug 2.9 to 3.0 because I want to use PHP8.

This is the code of my Dockerfile:
<pre>
FROM php:8.0-fpm-alpine

install dependencies

RUN set -ex; \
apk add --no-cache --virtual \
.build-deps \
$PHPIZE_DEPS \
bash

use the mlocati/docker-php-extension-installer to install necessary packages and php extensions

the installer cleans up all dev packages which were only used for compiling

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN chmod uga+x /usr/local/bin/install-php-extensions && \
sync && \
install-php-extensions \
xdebug

install composer (needed for PHPUnit updates)

RUN set -ex; \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

modify xdebug.ini to reflect php version (replaced by the 'docker-php-ext-enable imagick' command, but still

a pretty nice command to my mind)

COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
RUN set -ex; \
find /usr/local/lib/php/extensions -name "no-debug-non-zts-*" | \
xargs basename | \
xargs -I '{}' sed -i 's/{folder_version}/{}/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

VOLUME /var/www/html
WORKDIR /var/www/html

CMD php-fpm
</pre>

Whenever I enable XDebug a lot of "default" options are set even if they don't appear in any .ini file.
<pre>
Version => 3.0.1
Support Xdebug on Patreon, GitHub, or as a business: https://xdebug.org/support

Directive => Local Value => Master Value
xdebug.auto_trace => This setting has been changed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-&quot;xdebug.auto_trace&quot; => This setting has been changed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-&quot;xdebug.auto_trace&quot;
xdebug.collect_includes => This setting has been removed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#removed-&quot;xdebug.collect_includes&quot; => This setting has been removed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#removed-&quot;xdebug.collect_includes&quot;
xdebug.collect_params => This setting has been removed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#removed-&quot;xdebug.collect_params&quot; => This setting has been removed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#removed-&quot;xdebug.collect_params&quot;

...
</pre>

This is the code of my xdebug.ini
<pre>
[xdebug]
; enable the extension
zend_extension=/usr/local/lib/php/extensions/{folder_version}/xdebug.so

; do NOT use the incoming IP address to connect back
xdebug.remote_connect_back=0
; use DNS entry to resolve the host instead
; @see https://docs.docker.com/docker-for-windows/networking/#i-cannot-ping-my-containers
xdebug.remote_host=10.254.254.254
; use port 9000 on the remote host for connection
xdebug.remote_port=9002
; enable debugging
xdebug.default_enable=0
xdebug.remote_enable=1
xdebug.remote_autostart=0
xdebug.idekey=PHPSTORM

; save detailed information in a log file
; only required when setting up xdebug
xdebug.remote_log="/tmp/xdebug.log"
</pre>

I have no idea where these options come from and if they are blocking anything. They appear as soon as the extension is loaded.

TagsNo tags attached.
Operating System
PHP Version8.0.0-8.0.4

Activities

spigandromeda

2020-12-28 12:20

reporter   ~0005620

Sorry for the messy format. The tags doesn't seem to work like proposed in Mantis wiki (or I did something wrong).

best regards,
spigandromeda

derick

2020-12-30 12:08

administrator   ~0005622

These settings aren't really set. Their default value is this long string to indicate that these have been renamed or removed in Xdebug 3. It is purely a display issue which I'm hoping to alleviate with https://github.com/xdebug/xdebug/pull/713

The entries will be fully removed in Xdebug 3.1, but they're here now to help migration from Xdebug 2 to 3.

Issue History

Date Modified Username Field Change
2020-12-28 12:18 spigandromeda New Issue
2020-12-28 12:20 spigandromeda Note Added: 0005620
2020-12-30 11:57 derick Description Updated
2020-12-30 12:05 derick Description Updated
2020-12-30 12:06 derick Summary Deprecated XDebug 2.9 options unexpectedly set withoug ini entries => Deprecated INI settings displayed in phpinfo()
2020-12-30 12:08 derick Assigned To => derick
2020-12-30 12:08 derick Status new => assigned
2020-12-30 12:08 derick Note Added: 0005622
2020-12-30 16:37 derick Status assigned => closed
2020-12-30 16:37 derick Resolution open => fixed
2020-12-30 16:37 derick Fixed in Version => 3.0.2