Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Warn about not using the bin/ PHP binary
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Nov 24, 2013
1 parent 2b92003 commit a8055eb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
cd "$DIR"
if [ -f ./php5/bin/php ]; then
mkdir -m 0777 bin/
mv ./php5/bin/php ./bin/php
rm -r -f ./php5/
mkdir -m 0777 bin/
mv ./php5/bin/php ./bin/php
rm -r -f ./php5/
fi
if [ -f ./bin/php ]; then
./bin/php -d enable_dl=On PocketMine-MP.php $@
./bin/php -d enable_dl=On PocketMine-MP.php $@
else
php -d enable_dl=On PocketMine-MP.php $@
echo "[WARNING] You are not using the standalone PocketMine-MP PHP binary."
php -d enable_dl=On PocketMine-MP.php $@
fi

0 comments on commit a8055eb

Please sign in to comment.