You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
381 B

  1. --TEST--
  2. ZE2 cannot override final old style ctor
  3. --FILE--
  4. <?php
  5. class Base
  6. {
  7. public final function Base()
  8. {
  9. }
  10. }
  11. class Works extends Base
  12. {
  13. }
  14. class Extended extends Base
  15. {
  16. public function __construct()
  17. {
  18. }
  19. }
  20. ReflectionClass::export('Extended');
  21. ?>
  22. --EXPECTF--
  23. Fatal error: Cannot override final Base::Base() with Extended::__construct() in %sfinal_ctor2.php on line %d