ctor_in_interface_01.phpt 333 B

12345678910111213141516171819
  1. --TEST--
  2. ZE2 A class constructor must keep the signature of an interface
  3. --FILE--
  4. <?php
  5. interface constr
  6. {
  7. function __construct();
  8. }
  9. class implem implements constr
  10. {
  11. function __construct($a)
  12. {
  13. }
  14. }
  15. ?>
  16. --EXPECTF--
  17. Fatal error: Declaration of implem::__construct($a) must be compatible with constr::__construct() in %s on line %d