[php-src] PR #15856: Lazy objects: Update class constants earlier
| From: | arnaud-lb | Date: | Thu, 12 Sep 2024 12:37:58 +0000 |
| Subject: | [php-src] PR #15856: Lazy objects: Update class constants earlier | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28557@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15856
Author: arnaud-lb
If a lazy object is created for a class whose constants can not be updated, then we have created an
instance of a non-instantiable class. This breaks the expectations of
clone.
Here I ensure that a class has its constants updated before creating a lazy instance of it.
Fixes oss-fuzz #71407