Skip to content

Commit

Permalink
Be able to look for php.ini file
Browse files Browse the repository at this point in the history
  • Loading branch information
mruz committed Jul 22, 2014
1 parent 1b35d1c commit 6da835f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/zephir
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6da835f

Please sign in to comment.