mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
27b3131422
Closes GH-15983.
12 lines
244 B
PHP
12 lines
244 B
PHP
--TEST--
|
|
GH-15982 (Assertion failure with array_find when references are involved)
|
|
--FILE--
|
|
<?php
|
|
$var = "hello";
|
|
$arrayWithRef = [];
|
|
$arrayWithRef[0] =& $var;
|
|
var_dump(array_find($arrayWithRef, fn () => true));
|
|
?>
|
|
--EXPECT--
|
|
string(5) "hello"
|