objects_002.phpt 364 B

12345678910111213141516171819202122
  1. --TEST--
  2. method overloading with different method signature
  3. --INI--
  4. error_reporting=8191
  5. --FILE--
  6. <?php
  7. class test {
  8. function foo() {}
  9. }
  10. class test2 extends test {
  11. function foo() {}
  12. }
  13. class test3 extends test {
  14. function foo($arg) {}
  15. }
  16. ?>
  17. --EXPECTF--
  18. Fatal error: Declaration of test3::foo($arg) must be compatible with test::foo() in %s on line %d