Skip to content

Commit a51c98e

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Add test for bug #60161
2 parents 960318e + 8c8f8c4 commit a51c98e

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)