xref: /PHP-8.4/Zend/tests/bug69756.phpt (revision 90976c99)
1--TEST--
2Fixed bug #69756 (Fatal error: Nesting level too deep - recursive dependency? with ===).
3--FILE--
4<?php
5$arr = range(1, 2);
6foreach($arr as &$item ) {
7    var_dump($arr === array(1, 2));
8}
9?>
10--EXPECT--
11bool(true)
12bool(true)
13