mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
19 lines
330 B
PHP
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) {
|
|
}
|
|
}
|