Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
temporaryPath="$(mktemp -t php-no-debug.XXXX)"
find /etc/php5/cli/php.ini /etc/php5/cli/conf.d/*.ini ! -name 20-xdebug.ini | xargs cat > "$temporaryPath"
/usr/bin/php -n -c "$temporaryPath" "$@"
rm -f "$temporaryPath"
@perk11

This comment has been minimized.

Copy link
Owner Author

@perk11 perk11 commented Jan 30, 2016

You can then do things like alias composer='/home/user/bin/php-no-xdebug' /path/to/composer.phar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.