mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 06:09:57 +00:00
Added a check for Phar extension
This commit is contained in:
parent
4c764072b2
commit
645d744e05
@ -84,6 +84,12 @@ namespace pocketmine {
|
|||||||
* Enjoy it as much as I did writing it. I don't want to do it again.
|
* Enjoy it as much as I did writing it. I don't want to do it again.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if(!extension_loaded("phar")){
|
||||||
|
echo "[CRITICAL] Unable to find the Phar extension." . PHP_EOL;
|
||||||
|
echo "[CRITICAL] Please use the installer provided on the homepage." . PHP_EOL;
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if(\Phar::running(true) !== ""){
|
if(\Phar::running(true) !== ""){
|
||||||
@define('pocketmine\PATH', \Phar::running(true) . "/");
|
@define('pocketmine\PATH', \Phar::running(true) . "/");
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user