Files
Lazizbek Ergashev 551967dd91 Fix GH-24491: Static method stream error handler replaces pending exception (#24520)
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
2026-10-23 20:57:32 +01:00
..
…