xref: /PHP-8.2/ext/ffi/tests/bug80186.phpt (revision bd9f4fa6)
1--TEST--
2Bug #80186 (Segfault when iterating over FFI object)
3--EXTENSIONS--
4ffi
5--FILE--
6<?php
7$ffi = FFI::cdef('typedef int dummy;');
8foreach ($ffi as $_) { }
9foreach ($ffi as &$_) { }
10?>
11===DONE===
12--EXPECT--
13===DONE===
14