Свойство | Тип | Описание | |
---|---|---|---|
$appInstances | array | Running application instances | |
$appResolver | AppResolver | ||
$appResolverPath | string | Path to application resolver | |
$compatMode | boolean | Running under Apache/PHP-FPM in compatibility mode? | |
$config | Configuration object | ||
$context | object | Running context | |
$defaultErrorLevel | integer | Default error reporting level | |
$logpointer | resource | Log file resource | |
$logpointerAsync | object | Log file async. resource | |
$noError | boolean | Mechanism of catching errors. Set it to true, then run your suspect code, and then check this property again. If false, there was error message. | |
$obInStack | boolean | Whether if the current execution stack contains ob-filter | |
$process | Current thread object | ||
$req | Running request | ||
$restrictErrorControl | boolean | Restrict error control. When true, operator '@' means nothing. | |
$runName | string | Base name of daemon instance | |
$runworkerMode | boolean | Is it running under master-less 'runworker' mode? | |
$shm_wstate | Shared memory 'WSTATE' entity | ||
$startTime | integer | PHPDaemon start time | |
$version | string | PHPDaemon version | |
$wstateRev | array | Hash of possible worker states |
Свойство | Тип | Описание | |
---|---|---|---|
$initservervar | array | Copy of $_SERVER on the daemon start | |
$masters | Collection of masters | ||
$support | string | Supported things array | |
$workers | Collection of workers |
Метод | Описание | |
---|---|---|
callAutoGC ( ) : void | Call automatic garbage collector | |
checkAutoGC ( ) : boolean | Check if we need to run automatic garbage collector | |
compatRunEmul ( ) : boolean | null | It allows to run your simple web-apps in spawn-fcgi/php-fpm environment. | |
errorHandler ( integer $errno, string $errstr, string $errfile, integer $errline, array $errcontext ) | Error handler | |
getStateOfWorkers ( ) : array | Get state of workers. | |
glob ( string $pattern, integer $flags ) : array | Glob function with support of include_path | |
init ( ) : void | Performs initial actions. | |
initSettings ( ) : void | Loads default setting. | |
lintFile ( $filename ) : boolean | Check file syntax via runkit_lint_file if supported or via php -l | |
loadConfig ( string $paths ) : boolean | Load config-file | |
loadModuleIfAbsent ( string $mod, string $version = null, string $compare = '>=' ) : boolean | Load PHP extension (module) if absent | |
log ( $args ) | Send message to the log | |
openLogs ( ) : void | Open logs | |
outputFilter ( $s ) : string | Output filter | |
runWorker ( ) : void | Run worker thread | |
spawnMaster ( ) : null | integer | Spawn a master process | |
supported ( integer $what ) : boolean | Is thing supported | |
uncaughtExceptionHandler ( Exception $e ) : void | Uncaught exception handler | |
uniqid ( ) : string | Generate a unique ID. |
Метод | Описание | |
---|---|---|
checkSupports ( ) : void | Method to fill $support array |
public static callAutoGC ( ) : void | ||
Результат | void |
public static checkAutoGC ( ) : boolean | ||
Результат | boolean |
protected static checkSupports ( ) : void | ||
Результат | void |
public static compatRunEmul ( ) : boolean | null | ||
Результат | boolean | null | - Success. |
public static getStateOfWorkers ( ) : array | ||
Результат | array | - information. |
public static initSettings ( ) : void | ||
Результат | void |
public static loadConfig ( string $paths ) : boolean | ||
$paths | string | Path |
Результат | boolean | - Success. |
public static outputFilter ( $s ) : string | ||
Результат | string | Output |
public static spawnMaster ( ) : null | integer | ||
Результат | null | integer | - success |
public static uncaughtExceptionHandler ( Exception $e ) : void | ||
$e | Exception | |
Результат | void |
public static array $appInstances | ||
Результат | array |
public static AppResolver,PHPDaemon\Core $appResolver | ||
Результат |
public static string $appResolverPath | ||
Результат | string |
public static bool $compatMode | ||
Результат | boolean |
public static Object,PHPDaemon\Config $config | ||
Результат |
public static object $context | ||
Результат | object |
public static int $defaultErrorLevel | ||
Результат | integer |
protected static array $initservervar | ||
Результат | array |
public static resource $logpointer | ||
Результат | resource |
public static object $logpointerAsync | ||
Результат | object |
protected static Collection,PHPDaemon\Thread $masters | ||
Результат |
public static bool $noError | ||
Результат | boolean |
public static bool $obInStack | ||
Результат | boolean |
public static Master,PHPDaemon\Thread|IPC,PHPDaemon\Thread|Worker,PHPDaemon\Thread $process | ||
Результат |
public static Generic,PHPDaemon\Request $req | ||
Результат |
public static bool $restrictErrorControl | ||
Результат | boolean |
public static string $runName | ||
Результат | string |
public static bool $runworkerMode | ||
Результат | boolean |
public static Collection,PHPDaemon\Thread $shm_wstate | ||
Результат |
public static int $startTime | ||
Результат | integer |
protected static string $support | ||
Результат | string |
public static string $version | ||
Результат | string |
protected static Collection,PHPDaemon\Thread $workers | ||
Результат |
public static array $wstateRev | ||
Результат | array |