[php-src] PR #20097: Allow by-ref assign to WeakMap even if object is not yet in the map

From: Date: Tue, 07 Oct 2025 18:15:52 +0000
Subject: [php-src] PR #20097: Allow by-ref assign to WeakMap even if object is not yet in the map
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33523@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20097 Author: nielsdos Previously this failed as the read_dimension which is invoked by ref-assign does not contain the logic to add the key, so it was required to first write the value using a normal assignment and then thereafter use the reference assignment. This solves it by adding the necessary logic to assign references directly. This is a follow-up for https://github.com/php/php-src/pull/20078

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