Created
April 3, 2015 06:04
-
-
Save jbboehr/5f8a03b49b1cbe613fb3 to your computer and use it in GitHub Desktop.
Composer xdebug unloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
COMPOSER_BIN=`which composer.phar` | |
PHP_BIN=`which php` | |
PHP_EXTENSION_DIR=`php -r 'echo ini_get("extension_dir");'` | |
EXTENSIONS=`find $PHP_EXTENSION_DIR -name "*.so" | egrep -v '(xdebug|opcache)'` | |
PHP_ARGS=' -n -d allow_url_fopen=On -d detect_unicode=Off ' | |
for x in $EXTENSIONS; do | |
PHP_ARGS="$PHP_ARGS -d extension=$x " | |
done | |
COMMAND="$PHP_BIN $PHP_ARGS $COMPOSER_BIN" | |
exec $COMMAND "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment