bug47981.phpt 364 B

1234567891011121314151617
  1. --TEST--
  2. Bug #47981 (error handler not called regardless)
  3. --INI--
  4. error_reporting=0
  5. --FILE--
  6. <?php
  7. function errh($errno, $errstr) {
  8. var_dump($errstr);
  9. }
  10. set_error_handler("errh");
  11. interface a{}
  12. class b implements a { function f($a=1) {}}
  13. class c extends b {function f() {}}
  14. ?>
  15. --EXPECT--
  16. string(60) "Declaration of c::f() should be compatible with b::f($a = 1)"