[php-src] PR #19654: Fix GH-19653: Closure named argument unpacking between temporary closures can cause a crash

From: Date: Sun, 31 Aug 2025 19:30:26 +0000
Subject: [php-src] PR #19654: Fix GH-19653: Closure named argument unpacking between temporary closures can cause a crash
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33016@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19654 Author: nielsdos Due to closures, the fbc address isn't unique if the memory address is reused. So for user closures we need to distinguish using a unique key, while internal functions can't disappear and therefore can use the fbc address as unique key. As for performance: This adds a load+compare for the function type, although we already load and compare the function type down below, so that impact on performance should be small. It also adds a load on the opcodes array, but we access fields from the same cacheline too so that should also have only a small impact. It can make a performance improvement for shared opcodes arrays in case of traits as the cache slot can be reused.

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