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: | 349 |
Nodes: | 16 (0 / 16) |
Uptime: | 150:59:50 |
Calls: | 7,615 |
Calls today: | 3 |
Files: | 12,792 |
Messages: | 5,685,422 |
Posted today: | 2 |