[php-src] PR #25508: SCCP: Fix constant propagation when unpacking into partial arrays

From: Date: Tue, 17 Nov 2026 06:00:37 +0000
Subject: [php-src] PR #25508: SCCP: Fix constant propagation when unpacking into partial arrays
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40712@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25508 Author: LamentXU123 My fuzzer discovers a interesting case today ``` function test($x) { $a = [$x, ...[42]]; var_dump($a[0], $a[1]); } test(7); ``` With SCCP on this returns 42, 42 but it should be 7, 42 My solution is to skip partical arrays anyways because it is impossible for SCCP to know the next free index of a partial array.

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