Skip to content

Instantly share code, notes, and snippets.

@antonioribeiro
Created January 23, 2018 19:59
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonioribeiro/5dde1428e5836a241da51537c917be0d to your computer and use it in GitHub Desktop.
Save antonioribeiro/5dde1428e5836a241da51537c917be0d to your computer and use it in GitHub Desktop.
phpx - run php without Xdebug
function phpx {
phpPath=/usr/local/etc/php/$PHP_VERSION
find $phpPath/php.ini $phpPath/conf.d/*.ini ! -name ext-xdebug.ini | xargs cat > $phpPath/php-no-xdebug.ini
php -n -c $phpPath/php-no-xdebug.ini "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment