[php-src] PR #24520: Fix GH-24491: Static method stream error handler replaces pending exception
| From: | lazerg | Date: | Thu, 22 Oct 2026 01:21:22 +0000 |
| Subject: | [php-src] PR #24520: Fix GH-24491: Static method stream error handler replaces pending exception | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39685@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24520
Author: lazerg
Since 2f7b01b86c,
zend_is_callable() fills in an error string even when it fails
because an exception is already pending, so php_stream_call_error_handler() threw a
TypeError over the StreamException (or whatever the user error handler threw) for any
Class::method handler. It now only throws when nothing is pending, the same way curl
already does.
The same commit made zend_parse_arg() leak that error string when it bails out on a
pending exception, so it's freed there now too.
Fixes GH-24491