facebook / facebook/hhvm

PHP incompatibility with multiple error handlers

Open
#7,303 0 comments 0 reactions 0 assignees View on GitHub
framework parity mid-pri php5 incompatibility probably easy
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

HHVM behaves differently than PHP when multiple error handlers interact with each other. In PHP, you can call `restore_error_handler()` followed by `trigger_error()` inside an error handler to essentially pass the error on to the next error handler. In HHVM, this doesn't happen.
### HHVM Version

```
HipHop VM 3.12.1 (rel)
Compiler: tags/HHVM-3.12.1-0-gf516f1bb9046218f89885a220354c19dda6d8f4d
Repo schema: f2e5f39b2ad4a08bcbd90b5d8bcb580f40fba6c8
```
### Standalone code, or other way to reproduce the problem

https://3v4l.org/kA5pA

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.