xref: /PHP-8.0/Zend/tests/bug71428.2.phpt (revision f8d79582)
1--TEST--
2bug #71428.2: inheritance of ye olde dynamic interfaces
3--SKIPIF--
4<?php if (!extension_loaded('pdo')) die("skip PDO is not available"); ?>
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