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
386 B

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