error_handler
A callback with the following signature. NULL may be passed instead, to reset this handler to its default state. Instead of a function name, an array containing an object reference and a method name can also be supplied.
handler ( int $errno , string $errstr [, string $errfile [, int $errline
[, array $errcontext ]]] ) : bool
From: https://www.php.net/manual/en/function.set-error-handler.php
Why the $errfile, $errline, $errcontext parameters must be optional?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (2 / 14) |
Uptime: | 14:00:13 |
Calls: | 9,711 |
Calls today: | 1 |
Files: | 13,740 |
Messages: | 6,181,697 |