History log of /php-src/ext/standard/tests/array/gh16957.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# f1fc4e8f 27-Nov-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16957: Assertion failure in array_shift with self-referencing array

We have an RC1 violation because we're immediately dereferencing and
copying the resulting array in the test ca

Fix GH-16957: Assertion failure in array_shift with self-referencing array

We have an RC1 violation because we're immediately dereferencing and
copying the resulting array in the test case. Instead, transfer the
lifetime using RETVAL_COPY_VALUE and unwrap only after the internal
iterator is reset.

Closes GH-16970.

show more ...