Skip to content

Instantly share code, notes, and snippets.

@perk11
Last active February 26, 2016 21:22
Show Gist options
  • Save perk11/816c4e64023ea26976cf to your computer and use it in GitHub Desktop.
Save perk11/816c4e64023ea26976cf to your computer and use it in GitHub Desktop.

Revisions

  1. perk11 revised this gist Jan 30, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion php-no-xdebug.sh
    Original file line number Diff line number Diff line change
    @@ -3,5 +3,5 @@
    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"
    php -n -c "$temporaryPath" "$@"
    /usr/bin/php -n -c "$temporaryPath" "$@"
    rm -f "$temporaryPath"
  2. perk11 created this gist Jan 30, 2016.
    7 changes: 7 additions & 0 deletions php-no-xdebug.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/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"
    php -n -c "$temporaryPath" "$@"
    rm -f "$temporaryPath"