From 6da835f5214eb9e061339de94bd984ddfe3e8357 Mon Sep 17 00:00:00 2001 From: mruz Date: Wed, 16 Jul 2014 22:40:11 +0200 Subject: [PATCH] Be able to look for php.ini file --- bin/zephir | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 +