mirror of
https://github.com/php/php-src.git
synced 2024-12-04 07:14:10 +08:00
15443f8af4
Early exit in FE_RESET if get_properties() returns empty array, as we cannot add HT iterators to zend_empty_array.
16 lines
295 B
PHP
16 lines
295 B
PHP
--TEST--
|
|
Bug #80186 (Segfault when iterating over FFI object)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('ffi')) die('skip ffi extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$ffi = FFI::cdef('typedef int dummy;');
|
|
foreach ($ffi as $_) { }
|
|
foreach ($ffi as &$_) { }
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|