Function __global->cms_error_handler
Definitions
sources/global2.php
- Software error handler (hooked into PHP error system).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $errno | integer | No | No | required parameter | N/A | N/A | The error type-number |
| $errstr | PATH | No | No | required parameter | N/A | N/A | The error message |
| $errfile | string | No | No | required parameter | N/A | N/A | The file the error occurred in |
| $errline | integer | No | No | required parameter | N/A | N/A | The line the error occurred on |
Returns
- Mark error handled, so PHP's native error handling code does not execute. i.e. false => bubble, true => handled. For errors we intercept we don't return at all so bubbling never happens in such a case.
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Software error handler (hooked into PHP error system).
*
* @param integer $errno The error type-number
* @param PATH $errstr The error message
* @param string $errfile The file the error occurred in
* @param integer $errline The line the error occurred on
* @return boolean Mark error handled, so PHP's native error handling code does not execute. i.e. false => bubble, true => handled. For errors we intercept we don't return at all so bubbling never happens in such a case.
*/
function cms_error_handler(int $errno, string $errstr, string $errfile, int $errline) : bool
* Software error handler (hooked into PHP error system).
*
* @param integer $errno The error type-number
* @param PATH $errstr The error message
* @param string $errfile The file the error occurred in
* @param integer $errline The line the error occurred on
* @return boolean Mark error handled, so PHP's native error handling code does not execute. i.e. false => bubble, true => handled. For errors we intercept we don't return at all so bubbling never happens in such a case.
*/
function cms_error_handler(int $errno, string $errstr, string $errfile, int $errline) : bool
sources/minikernel.php
- Software error handler (hooked into PHP error system).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $errno | integer | No | No | required parameter | N/A | N/A | The error code-number |
| $errstr | PATH | No | No | required parameter | N/A | N/A | The error message |
| $errfile | string | No | No | required parameter | N/A | N/A | The file the error occurred in |
| $errline | integer | No | No | required parameter | N/A | N/A | The line the error occurred on |
Returns
- Always false
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Software error handler (hooked into PHP error system).
*
* @param integer $errno The error code-number
* @param PATH $errstr The error message
* @param string $errfile The file the error occurred in
* @param integer $errline The line the error occurred on
* @return boolean Always false
*/
function cms_error_handler(int $errno, string $errstr, string $errfile, int $errline) : bool
* Software error handler (hooked into PHP error system).
*
* @param integer $errno The error code-number
* @param PATH $errstr The error message
* @param string $errfile The file the error occurred in
* @param integer $errline The line the error occurred on
* @return boolean Always false
*/
function cms_error_handler(int $errno, string $errstr, string $errfile, int $errline) : bool

