xref: /PHP-7.4/ext/ffi/tests/bug80186.phpt (revision 15443f8a)
1--TEST--
2Bug #80186 (Segfault when iterating over FFI object)
3--SKIPIF--
4<?php
5if (!extension_loaded('ffi')) die('skip ffi extension not available');
6?>
7--FILE--
8<?php
9$ffi = FFI::cdef('typedef int dummy;');
10foreach ($ffi as $_) { }
11foreach ($ffi as &$_) { }
12?>
13===DONE===
14--EXPECT--
15===DONE===
16