PhpHandler
extends AbstractHandler
in package
Debug time handler class
Tags
Table of Contents
Properties
- $dateTime : string|null
- PHP date/time
- $disabledClasses : array<string|int, mixed>
- PHP disabled classes
- $disabledFunctions : array<string|int, mixed>
- PHP disabled classes
- $errorReporting : array<string|int, mixed>
- PHP error reporting constants
- $errorSettings : array<string|int, mixed>
- PHP error settings
- $extensions : array<string|int, mixed>
- PHP extensions
- $extraVersion : string
- PHP version extra
- $limits : array<string|int, mixed>
- PHP limits
- $logger : Logger|null
- Logger object
- $loggingParams : array<string|int, mixed>
- Logging params
- $majorVersion : int
- PHP major version
- $minorVersion : int
- PHP minor version
- $name : string|null
- Name of time measurement
- $releaseVersion : int
- PHP release version
- $version : string
- PHP version
Methods
- __construct() : mixed
- Constructor
- getDateTime() : string|null
- Get date/time
- getDisabledClasses() : array<string|int, mixed>
- Get disabled classes
- getDisabledFunctions() : array<string|int, mixed>
- Get disabled functions
- getErrorReportingList() : array<string|int, mixed>
- Get human-readable error reporting list
- getErrorSetting() : mixed
- Get error setting
- getErrorSettings() : array<string|int, mixed>
- Get error settings
- getExtensions() : array<string|int, mixed>
- Get extensions
- getIniSetting() : mixed
- Get PHP INI setting
- getLimit() : mixed
- Get limit
- getLimits() : array<string|int, mixed>
- Get limits
- getLogger() : Logger|null
- Get logger
- getLoggingParams() : array<string|int, mixed>
- Get logging params
- getName() : string|null
- Get name
- getPhpExtraVersion() : string
- Get PHP extra version
- getPhpMajorVersion() : int
- Get PHP major version
- getPhpMinorVersion() : int
- Get PHP minor version
- getPhpReleaseVersion() : int
- Get PHP release version
- getPhpVersion() : string
- Get full PHP version
- hasDisabledClass() : bool
- Has disabled class
- hasDisabledFunction() : bool
- Has disabled function
- hasErrorLevel() : bool
- Has error level
- hasExtension() : bool
- Has extensions
- hasLogger() : bool
- Has logger
- hasLoggingParams() : bool
- Has logging parameters
- hasName() : bool
- Has name
- log() : void
- Trigger handler logging
- parseDisabled() : void
- Get PHP disabled functions and classes
- parseErrorSettings() : void
- Get PHP error settings
- parseLimits() : void
- Get PHP limits
- prepare() : array<string|int, mixed>
- Prepare handler data for storage
- prepareAsString() : string
- Prepare handler data as string
- prepareHeaderAsString() : string
- Prepare header string
- setLogger() : AbstractHandler
- Set logger
- setLoggingParams() : AbstractHandler
- Set logger
- setName() : AbstractHandler
- Set name
Properties
$dateTime
PHP date/time
protected
string|null
$dateTime
= null
$disabledClasses
PHP disabled classes
protected
array<string|int, mixed>
$disabledClasses
= []
$disabledFunctions
PHP disabled classes
protected
array<string|int, mixed>
$disabledFunctions
= []
$errorReporting
PHP error reporting constants
protected
array<string|int, mixed>
$errorReporting
= [E_ALL => 'E_ALL', E_USER_DEPRECATED => 'E_USER_DEPRECATED', E_DEPRECATED => 'E_DEPRECATED', E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', E_STRICT => 'E_STRICT', E_USER_NOTICE => 'E_USER_NOTICE', E_USER_WARNING => 'E_USER_WARNING', E_USER_ERROR => 'E_USER_ERROR', E_COMPILE_WARNING => 'E_COMPILE_WARNING', E_COMPILE_ERROR => 'E_COMPILE_ERROR', E_CORE_WARNING => 'E_CORE_WARNING', E_CORE_ERROR => 'E_CORE_ERROR', E_NOTICE => 'E_NOTICE', E_PARSE => 'E_PARSE', E_WARNING => 'E_WARNING', E_ERROR => 'E_ERROR']
$errorSettings
PHP error settings
protected
array<string|int, mixed>
$errorSettings
= ['error_reporting_list' => [], 'error_reporting' => null, 'display_errors' => null, 'display_startup_errors' => null, 'log_errors' => null]
$extensions
PHP extensions
protected
array<string|int, mixed>
$extensions
= []
$extraVersion
PHP version extra
protected
string
$extraVersion
= PHP_EXTRA_VERSION
$limits
PHP limits
protected
array<string|int, mixed>
$limits
= ['max_execution_time' => null, 'max_input_time' => null, 'max_input_nesting_level' => null, 'max_input_vars' => null, 'post_max_size' => null, 'file_uploads' => null, 'upload_max_filesize' => null, 'max_file_uploads' => null]
$logger
Logger object
protected
Logger|null
$logger
= null
$loggingParams
Logging params
protected
array<string|int, mixed>
$loggingParams
= []
$majorVersion
PHP major version
protected
int
$majorVersion
= PHP_MAJOR_VERSION
$minorVersion
PHP minor version
protected
int
$minorVersion
= PHP_MINOR_VERSION
$name
Name of time measurement
protected
string|null
$name
= null
$releaseVersion
PHP release version
protected
int
$releaseVersion
= PHP_RELEASE_VERSION
$version
PHP version
protected
string
$version
= PHP_VERSION
Methods
__construct()
Constructor
public
__construct([string|null $name = null ][, Logger|null $logger = null ][, array<string|int, mixed> $loggingParams = [] ]) : mixed
Instantiate a PHP handler object
Parameters
- $name : string|null = null
- $logger : Logger|null = null
- $loggingParams : array<string|int, mixed> = []
getDateTime()
Get date/time
public
getDateTime() : string|null
Return values
string|nullgetDisabledClasses()
Get disabled classes
public
getDisabledClasses() : array<string|int, mixed>
Return values
array<string|int, mixed>getDisabledFunctions()
Get disabled functions
public
getDisabledFunctions() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorReportingList()
Get human-readable error reporting list
public
getErrorReportingList() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorSetting()
Get error setting
public
getErrorSetting(string $setting) : mixed
Parameters
- $setting : string
getErrorSettings()
Get error settings
public
getErrorSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>getExtensions()
Get extensions
public
getExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed>getIniSetting()
Get PHP INI setting
public
getIniSetting(string $setting) : mixed
Parameters
- $setting : string
getLimit()
Get limit
public
getLimit(string $limit) : mixed
Parameters
- $limit : string
getLimits()
Get limits
public
getLimits() : array<string|int, mixed>
Return values
array<string|int, mixed>getLogger()
Get logger
public
getLogger() : Logger|null
Return values
Logger|nullgetLoggingParams()
Get logging params
public
getLoggingParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get name
public
getName() : string|null
Return values
string|nullgetPhpExtraVersion()
Get PHP extra version
public
getPhpExtraVersion() : string
Return values
stringgetPhpMajorVersion()
Get PHP major version
public
getPhpMajorVersion() : int
Return values
intgetPhpMinorVersion()
Get PHP minor version
public
getPhpMinorVersion() : int
Return values
intgetPhpReleaseVersion()
Get PHP release version
public
getPhpReleaseVersion() : int
Return values
intgetPhpVersion()
Get full PHP version
public
getPhpVersion([bool $withExtra = true ]) : string
Parameters
- $withExtra : bool = true
Return values
stringhasDisabledClass()
Has disabled class
public
hasDisabledClass(string $class) : bool
Parameters
- $class : string
Return values
boolhasDisabledFunction()
Has disabled function
public
hasDisabledFunction(string $function) : bool
Parameters
- $function : string
Return values
boolhasErrorLevel()
Has error level
public
hasErrorLevel(int $level) : bool
Parameters
- $level : int
Return values
boolhasExtension()
Has extensions
public
hasExtension(string $extension) : bool
Parameters
- $extension : string
Return values
boolhasLogger()
Has logger
public
hasLogger() : bool
Return values
boolhasLoggingParams()
Has logging parameters
public
hasLoggingParams() : bool
Return values
boolhasName()
Has name
public
hasName() : bool
Return values
boollog()
Trigger handler logging
public
log() : void
Tags
parseDisabled()
Get PHP disabled functions and classes
public
parseDisabled() : void
parseErrorSettings()
Get PHP error settings
public
parseErrorSettings() : void
parseLimits()
Get PHP limits
public
parseLimits() : void
prepare()
Prepare handler data for storage
public
prepare() : array<string|int, mixed>
Return values
array<string|int, mixed>prepareAsString()
Prepare handler data as string
public
prepareAsString() : string
Return values
stringprepareHeaderAsString()
Prepare header string
public
prepareHeaderAsString() : string
Return values
stringsetLogger()
Set logger
public
setLogger(Logger $logger) : AbstractHandler
Parameters
- $logger : Logger
Return values
AbstractHandlersetLoggingParams()
Set logger
public
setLoggingParams(array<string|int, mixed> $loggingParams) : AbstractHandler
Parameters
- $loggingParams : array<string|int, mixed>
Return values
AbstractHandlersetName()
Set name
public
setName(string $name) : AbstractHandler
Parameters
- $name : string