diff --git a/bin/zephir b/bin/zephir index 353426d7e1..ea3fb5e67e 100755 --- a/bin/zephir +++ b/bin/zephir @@ -32,4 +32,9 @@ if [ ! -r $ZEPHIRDIR/bin/zephir-parser ]; then esac fi -php $ZEPHIRDIR/compiler.php $* +if [[ $1 && $2 && $3 && "$1"=="-c" ]]; then + php -c $2 $ZEPHIRDIR/compiler.php ${*:3} +else + php $ZEPHIRDIR/compiler.php $* +fi +