Skip to content

Commit

Permalink
Merge pull request #446 from mruz/master
Browse files Browse the repository at this point in the history
Be able to look for php.ini file
  • Loading branch information
Phalcon committed Jul 26, 2014
2 parents 386ce55 + 6da835f commit 1a35a4b
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 1a35a4b

Please sign in to comment.