bug38942.phpt 373 B

123456789101112131415161718
  1. --TEST--
  2. Bug #38942 (Double old-style-ctor inheritance)
  3. --FILE--
  4. <?php
  5. class foo {
  6. public function foo() {}
  7. }
  8. class bar extends foo {
  9. }
  10. print_r(get_class_methods("bar"));
  11. ?>
  12. --EXPECTF--
  13. Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in %s on line %d
  14. Array
  15. (
  16. [0] => foo
  17. )