Skip to content

Instantly share code, notes, and snippets.

@bamper
Forked from perk11/php-no-xdebug.sh
Created February 26, 2016 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bamper/e5967a6637571b2392c8 to your computer and use it in GitHub Desktop.
Save bamper/e5967a6637571b2392c8 to your computer and use it in GitHub Desktop.
#!/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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment