bug71428.2.phpt 558 B

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