mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
PocketMine.php: move INI entry setting to a separate function
This commit is contained in:
@ -134,6 +134,14 @@ namespace pocketmine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function set_ini_entries(){
|
||||||
|
ini_set("allow_url_fopen", '1');
|
||||||
|
ini_set("display_errors", '1');
|
||||||
|
ini_set("display_startup_errors", '1');
|
||||||
|
ini_set("default_charset", "utf-8");
|
||||||
|
@ini_set("opcache.mmap_base", bin2hex(random_bytes(8))); //Fix OPCache address errors
|
||||||
|
}
|
||||||
|
|
||||||
function server(){
|
function server(){
|
||||||
if(!empty($messages = check_platform_dependencies())){
|
if(!empty($messages = check_platform_dependencies())){
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
@ -185,10 +193,7 @@ namespace pocketmine {
|
|||||||
|
|
||||||
set_time_limit(0); //Who set it to 30 seconds?!?!
|
set_time_limit(0); //Who set it to 30 seconds?!?!
|
||||||
|
|
||||||
ini_set("allow_url_fopen", '1');
|
set_ini_entries();
|
||||||
ini_set("display_errors", '1');
|
|
||||||
ini_set("display_startup_errors", '1');
|
|
||||||
ini_set("default_charset", "utf-8");
|
|
||||||
|
|
||||||
define('pocketmine\RESOURCE_PATH', \pocketmine\PATH . 'resources' . DIRECTORY_SEPARATOR);
|
define('pocketmine\RESOURCE_PATH', \pocketmine\PATH . 'resources' . DIRECTORY_SEPARATOR);
|
||||||
|
|
||||||
@ -256,7 +261,6 @@ namespace pocketmine {
|
|||||||
|
|
||||||
|
|
||||||
@define("INT32_MASK", is_int(0xffffffff) ? 0xffffffff : -1);
|
@define("INT32_MASK", is_int(0xffffffff) ? 0xffffffff : -1);
|
||||||
@ini_set("opcache.mmap_base", bin2hex(random_bytes(8))); //Fix OPCache address errors
|
|
||||||
|
|
||||||
$exitCode = 0;
|
$exitCode = 0;
|
||||||
do{
|
do{
|
||||||
|
Reference in New Issue
Block a user