Skip to content

Instantly share code, notes, and snippets.

@garethellis36
Last active March 9, 2016 14:38
Show Gist options
  • Save garethellis36/d6fc429bb59f9206296a to your computer and use it in GitHub Desktop.
Save garethellis36/d6fc429bb59f9206296a to your computer and use it in GitHub Desktop.
Disable XDebug when running composer in Git Bash for Windows - add this to ~/.bashrc
function composer()
{
COMPOSER="$(which composer)"
sed -i -e 's/zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/;zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/g' /c/php5.6/php.ini
$COMPOSER "$@"
sed -i -e 's/;zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/g' /c/php5.6/php.ini
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment