Skip to content

Commit 8c8f8c4

Browse files
committed
Add test for bug #60161
This has been fixed in PHP 7.4, let's make sure it stays fixed.
1 parent 1e50c81 commit 8c8f8c4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Zend/tests/bug60161.phpt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--TEST--
2+
Bug #60161: Implementing an interface extending Traversable is order dependent
3+
--FILE--
4+
<?php
5+
6+
interface Foo extends Traversable {
7+
}
8+
9+
class Example implements Foo, IteratorAggregate {
10+
public function getIterator() {
11+
return new ArrayIterator([]);
12+
}
13+
}
14+
15+
?>
16+
===DONE===
17+
--EXPECT--
18+
===DONE===

0 commit comments

Comments
 (0)