[php-src] Issue #20018: Delaying error handlers
| From: | arnaud-lb | Date: | Tue, 30 Sep 2025 16:13:34 +0000 |
| Subject: | [php-src] Issue #20018: Delaying error handlers | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250960@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/20018
Author: arnaud-lb
### Description
Due to error handlers, some operations may have unsuspected effects. This is the cause of bugs and
workarounds. Quoting GH-6903:
> [...] long-standing source of interrupt
> vulnerabilities: A notice is emitted during execution of an opcode,
> resulting in an error handling being run. The error handler modifies
> some data structure the opcode is working on, resulting in UAF or
> other memory corruption.
These bugs and workarounds could be avoided by delaying error handlers until a safepoint.
Existing/Previous work:
* https://github.com/php/php-src/pull/6903
* https://github.com/php/php-src/pull/12090
* https://github.com/php/php-src/pull/12805
I'm creating this ticket to aggregate issues that would not exist with delayed error handlers:
* https://github.com/php/php-src/issues/13754
* https://github.com/php/php-src/issues/15907
* https://github.com/php/php-src/issues/16726
* https://github.com/php/php-src/issues/17416
* https://github.com/php/php-src/issues/18043
* https://github.com/php/php-src/issues/18274
### PHP Version
```plain
-
```
### Operating System
_No response_