mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
PTHREADS_INHERIT_CONSTANTS is no longer needed for MainLogger to log exceptions
cleaned paths are now referenced from Filesystem instead of namespace constants.
This commit is contained in:
parent
f138004913
commit
b3e8314b9f
@ -51,7 +51,6 @@ use function mt_rand;
|
|||||||
use function random_bytes;
|
use function random_bytes;
|
||||||
use function rtrim;
|
use function rtrim;
|
||||||
use function substr;
|
use function substr;
|
||||||
use const PTHREADS_INHERIT_CONSTANTS;
|
|
||||||
|
|
||||||
class RakLibInterface implements ServerEventListener, AdvancedNetworkInterface{
|
class RakLibInterface implements ServerEventListener, AdvancedNetworkInterface{
|
||||||
/**
|
/**
|
||||||
@ -122,7 +121,7 @@ class RakLibInterface implements ServerEventListener, AdvancedNetworkInterface{
|
|||||||
while($this->eventReceiver->handle($this));
|
while($this->eventReceiver->handle($this));
|
||||||
});
|
});
|
||||||
$this->server->getLogger()->debug("Waiting for RakLib to start...");
|
$this->server->getLogger()->debug("Waiting for RakLib to start...");
|
||||||
$this->rakLib->startAndWait(PTHREADS_INHERIT_CONSTANTS); //HACK: MainLogger needs constants for exception logging
|
$this->rakLib->startAndWait();
|
||||||
$this->server->getLogger()->debug("RakLib booted successfully");
|
$this->server->getLogger()->debug("RakLib booted successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ use function count;
|
|||||||
use function spl_object_id;
|
use function spl_object_id;
|
||||||
use function time;
|
use function time;
|
||||||
use const PHP_INT_MAX;
|
use const PHP_INT_MAX;
|
||||||
use const PTHREADS_INHERIT_CONSTANTS;
|
|
||||||
use const PTHREADS_INHERIT_INI;
|
use const PTHREADS_INHERIT_INI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -41,7 +40,7 @@ use const PTHREADS_INHERIT_INI;
|
|||||||
* workers.
|
* workers.
|
||||||
*/
|
*/
|
||||||
class AsyncPool{
|
class AsyncPool{
|
||||||
private const WORKER_START_OPTIONS = PTHREADS_INHERIT_INI | PTHREADS_INHERIT_CONSTANTS;
|
private const WORKER_START_OPTIONS = PTHREADS_INHERIT_INI;
|
||||||
|
|
||||||
/** @var \ClassLoader */
|
/** @var \ClassLoader */
|
||||||
private $classLoader;
|
private $classLoader;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user