[php-src] PR #16196: Fix GH-16188: Handle references after fetching Exception properties
| From: | arnaud-lb | Date: | Thu, 03 Oct 2024 11:32:18 +0000 |
| Subject: | [php-src] PR #16196: Fix GH-16188: Handle references after fetching Exception properties | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28970@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16196
Author: arnaud-lb
Fixes GH-16188.
Exception assumes that the result of zend_read_property() have the right
type, relying on property type hints. However the property value may also be a reference so we have
to deref.
This was already done for protected properties as it's possible to assign them
directly in sub-class, but not for private ones.