[php-src] PR #16970: Fix GH-16957: Assertion failure in array_shift with self-referencing array

From: Date: Wed, 27 Nov 2024 19:36:27 +0000
Subject: [php-src] PR #16970: Fix GH-16957: Assertion failure in array_shift with self-referencing array
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29804@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16970 Author: nielsdos We have an RC1 violation because we're immediately dereferencing and copying the resulting array in the test case. Instead, transfer the lifetime using ZVAL_COPY_VALUE and unwrap only after the internal iterator is reset. Targeting 8.3 because it's an unlikely bug to hit and 8.2 is almost EOL.

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