summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71428.2.phpt
blob: 9a98ba77602d739e97b2b323bc3af907b88af09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
bug #71428.2: inheritance of ye olde dynamic interfaces
--SKIPIF--
<?php if (!extension_loaded('pdo')) die("skip PDO is not available"); ?>
--FILE--
<?php
interface StatementInterface {
	public function fetch($first = null, $second, $third);
}

class Statement extends PDOStatement implements StatementInterface {}

interface StatementInterface1 {
	public function fetch($first = null, $second = null, $third = null);
}

class Statement1 extends PDOStatement implements StatementInterface1 {}

echo "ok";
?>
--EXPECT--
ok