mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
Wrap PocketMine.php body inside a function
this isolates variables from the global scope and also prevents doxygen documenting these variables.
This commit is contained in:
parent
d55889d85f
commit
95dfff727e
@ -121,6 +121,7 @@ namespace pocketmine {
|
|||||||
return $messages;
|
return $messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function server(){
|
||||||
if(!empty($messages = check_platform_dependencies())){
|
if(!empty($messages = check_platform_dependencies())){
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
$binary = version_compare(PHP_VERSION, "5.4") >= 0 ? PHP_BINARY : "unknown";
|
$binary = version_compare(PHP_VERSION, "5.4") >= 0 ? PHP_BINARY : "unknown";
|
||||||
@ -294,3 +295,6 @@ namespace pocketmine {
|
|||||||
|
|
||||||
exit($exitCode);
|
exit($exitCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\pocketmine\server();
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user