unread
$ php -r 'function e($code, $msg, $file, $line, &$context) { }
set_error_handler("e"); trigger_error("Hello");'
Notice: Hello in Command line code on line 1
Segmentation fault (core dumped)
Affected: PHP4, PHP5. Does not occur when & before $context is omitted.
- Timm