xdebug is always activated→major performance impact on the website
Opened this issue · 0 comments
ewasser commented
In the current postinstallation file (Debian 8 / php7.0-xdebug 2.5.1-1~dotdeb+8.1) xdebug is always activated regardless if it's a fresh installation or an upgrade from a previous one:
Here's the file /var/lib/dpkg/info/php7.0-xdebug.postinst
:
#!/bin/sh
set -e
# Automatically added by dh_php
for conf in xdebug; do
dpkg-maintscript-helper rm_conffile /etc/php/mods-available/${conf}.ini -- "$@"
done
if [ -e /usr/lib/php/php-maintscript-helper ] ; then
. /usr/lib/php/php-maintscript-helper
for version in 7.0 ; do
for conf in xdebug ; do
php_invoke enmod $version ALL $conf || exit $?
done
done
else
for conf in xdebug ; do
phpenmod $conf
done
fi
The module will always be activated. This is not a good behaviour. An upgrade shouldn't change the current configuration of a component at all.
I know that other modules are doing php_invoke enmod/phpenmod
too but enabling the xdebug modul has a major performance impact on a website, so it's a bad thing to do. ;-)