xref: /php-src/Zend/tests/bug71428.2.phpt (revision 74859783)
1--TEST--
2bug #71428.2: inheritance of ye olde dynamic interfaces
3--EXTENSIONS--
4pdo
5--FILE--
6<?php
7interface StatementInterface {
8    public function fetch(int $first = PDO::FETCH_BOTH, int $second = PDO::FETCH_ORI_NEXT, int $third = 0);
9}
10
11class Statement extends PDOStatement implements StatementInterface {}
12
13interface StatementInterface1 {
14    public function fetch(int $first = PDO::FETCH_ASSOC, int $second = PDO::FETCH_ORI_PRIOR, int $third = 1);
15}
16
17class Statement1 extends PDOStatement implements StatementInterface1 {}
18
19echo "ok";
20?>
21--EXPECT--
22ok
23