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: | 457 |
Nodes: | 16 (2 / 14) |
Uptime: | 112:40:23 |
Calls: | 9,324 |
Calls today: | 4 |
Files: | 13,534 |
Messages: | 6,080,404 |