# Bug #60149 - SPL autoloader not called in error handler triggered by private __call

- Thread: https://externals.io/message/56001
- Original archive: https://news-web.php.net/php.internals/56001
- Started by Paul Dragoonis on 2011-10-31T04:08:09+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

---

## #56001 — Paul Dragoonis — 2011-10-31T04:08:09+00:00

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

I've done a fair amount of reading on how
zend_do_begin_function_declaration slots into the PHP puzzle. I would
like to know if partly the reason this occurs is because, the
class/function declarations are evaluated before set_error_handler is
evaluated and thus the zend_error() is handled normally without the
user defined error handler kicking in.

I'm keen to make a patch for this.

Thanks,
- Paul Dragoonis.
