1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00
Files
Niels Dossche ae3ab37816 Fix GH-17447: Assertion failure when array popping a self addressing variable
This is the same bug as GH-16957, and fixed in the same way.

Closes GH-17448.
2025-01-16 20:28:51 +01:00

13 lines
195 B
PHP

--TEST--
GH-17447 (Assertion failure when array poping a self addressing variable)
--FILE--
<?php
$input[] = &$input;
var_dump(array_pop($input), $input);
?>
--EXPECT--
array(0) {
}
array(0) {
}