[php-src] PR #19590: Fix stream wrapper stream_close() not being called on exception unwind
| From: | iluuu1994 | Date: | Mon, 25 Aug 2025 20:33:35 +0000 |
| Subject: | [php-src] PR #19590: Fix stream wrapper stream_close() not being called on exception unwind | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32917@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19590
Author: iluuu1994
When EG(exception) is set, zend_call_function() will skip the call. Fix this anologously to
zend_objects_destroy_object(), by backing up the exception and temporarily setting it to NULL.
Fixes GH-19525