[php-src] PR #22013: Fix GC inconsistency

From: Date: Mon, 11 May 2026 15:03:41 +0000
Subject: [php-src] PR #22013: Fix GC inconsistency
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36087@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22013 Author: arnaud-lb Fixes GH-21999. In the reproducer, a series of events causes a lazy object's properties ht to be a GC root [1]. The lazy object's get_gc() handler however doesn't return the properties ht in this case, but still exposes properties to the GC. This causes properties to be visited twice. [1]: var_dump($obj) builds the object's properties ht, zend_compare_symbol_tables() adds it to GC roots.

« previous php.git-pulls (#36087) next »