[php-src] PR #14114: Fix persisting of inherited class constants
| From: | iluuu1994 | Date: | Thu, 02 May 2024 19:14:35 +0000 |
| Subject: | [php-src] PR #14114: Fix persisting of inherited class constants | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25991@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14114
Author: iluuu1994
Class constants are inherited to user classes without cloning. Avoid persisting them to shm multiple
times. Furthermore, internal class constants should not be persisted at all. Simply keep pointing to
the internal class constant.
Fixes GH-14109
This will need to be rebased to PHP-8.2. I target master for now only because
ZendAttributeTest doesn't exist on lower branches, and I was too lazy to backport.