blob: 7edc5eaf91d22cf02e3e6b86284df796e8ff4c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
Bug #72122 (IteratorIterator breaks '@' error suppression)
--FILE--
<?php
class CustomIterator implements IteratorAggregate {
public function getIterator() {
@unlink('/missing/file.txt');
return new ArrayIterator(array('item'));
}
}
$obj = new CustomIterator;
$iterator = new IteratorIterator($obj);
echo get_class($iterator);
?>
--EXPECT--
IteratorIterator
|