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.

24 lines
392 B

  1. --TEST--
  2. ZE2 An interface constructor signature must not be inherited
  3. --SKIPIF--
  4. <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
  5. --FILE--
  6. <?php
  7. error_reporting(4095);
  8. interface test {
  9. public function __construct($foo);
  10. }
  11. class foo implements test {
  12. public function __construct() {
  13. echo "foo\n";
  14. }
  15. }
  16. $foo = new foo;
  17. ?>
  18. --EXPECT--
  19. foo