1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/spl/tests/bug81587.phpt
Nikita Popov d7ad32649a Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fixed bug #81587
2021-11-04 10:38:08 +01:00

19 lines
330 B
PHP

--TEST--
Bug #81587: MultipleIterator Segmentation fault w/ SimpleXMLElement attached
--EXTENSIONS--
simplexml
--FILE--
<?php
$mi = new MultipleIterator();
$mi->attachIterator(new SimpleXMLElement('<x><y/></x>'));
foreach ($mi as $v) {
var_dump($v);
}
?>
--EXPECT--
array(1) {
[0]=>
object(SimpleXMLElement)#4 (0) {
}
}