# Segfault with error callback

- Thread: https://externals.io/message/9819
- Original archive: https://news-web.php.net/php.internals/9819
- Started by Timm Friebe on 2004-05-11T16:01:35+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9819 — Timm Friebe — 2004-05-11T16:01:35+00:00

URL: https://externals.io/message/9819#9819

$ 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
