Fixed PHPRC env. variable being set

This commit is contained in:
Shoghi Cervantes 2015-01-13 17:25:52 +01:00
parent f6c4a726b3
commit e8e7938490
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
2 changed files with 3 additions and 0 deletions

View File

@ -1,7 +1,9 @@
@echo off
TITLE PocketMine-MP server software for Minecraft: Pocket Edition
cd /d %~dp0
if exist bin\php\php.exe (
set PHPRC=""
set PHP_BINARY=bin\php\php.exe
) else (
set PHP_BINARY=php

View File

@ -23,6 +23,7 @@ done
if [ "$PHP_BINARY" == "" ]; then
if [ -f ./bin/php5/bin/php ]; then
export PHPRC=""
PHP_BINARY="./bin/php5/bin/php"
elif [ type php 2>/dev/null ]; then
PHP_BINARY=$(type -p php)