[php-src] PR #21094: Fix GH-20657: Mark object non-lazy before deleting info in zend_lazy_object_realize()
| From: | arnaud-lb | Date: | Fri, 30 Jan 2026 16:07:43 +0000 |
| Subject: | [php-src] PR #21094: Fix GH-20657: Mark object non-lazy before deleting info in zend_lazy_object_realize() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34736@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21094
Author: arnaud-lb
A lazy object is marked non-lazy when all its properties are initialized. Before doing so we delete
the object info, resulting in a temporarily invalid state. In GH-20657 the GC is triggered at this
moment.
Fix by deleting the object info _after_ marking it non lazy.
Fixes GH-20657.
Would have been avoided by GH-20001.