#!/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"