managing php extensions with php5enmod


http://www.lornajane.net/posts/2012/managing-php-5-4-extensions-on-ubuntu

You can enable/disable php modules via cli with php5enmod/php5dismod. For example disable xdebug before launch tests an enable when suite is finished.