[php-src] PR #12472: Fix refcounting of doc_comment
| From: | iluuu1994 | Date: | Wed, 18 Oct 2023 23:23:47 +0000 |
| Subject: | [php-src] PR #12472: Fix refcounting of doc_comment | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23932@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12472
Author: iluuu1994
When redeclaring an overridden static property with a trait we're removing the property from
the class. However, because the property itself does not belong to the class we must not free its
associated data.
This issue is exposed by 9a250cc9d6 in PHP 8.3+ because duplicate static properties in traits are no
longer skipped, but redeclared.
Fixes GH-12468