bug40784.phpt 452 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Bug #40784 (Case sensivity in constructor's fallback)
  3. --FILE--
  4. <?php
  5. class A {
  6. function A () { echo "I'm A\n"; }
  7. }
  8. class B extends A {
  9. function __construct() {
  10. parent::__construct();
  11. parent::__constrUct();
  12. }
  13. }
  14. $b = new B;
  15. echo "Done\n";
  16. ?>
  17. --EXPECTF--
  18. Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; A has a deprecated constructor in %s on line %d
  19. I'm A
  20. I'm A
  21. Done