diff options
author | Marcus Boerger <helly@php.net> | 2006-03-05 18:23:56 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2006-03-05 18:23:56 +0000 |
commit | b0f461e9d9d63c81c07e257493e237df8bbee8c3 (patch) | |
tree | 1e88160d262b64852d79a76e1941d233fb67efe0 /tests/classes/interface_construct.phpt | |
parent | 05fa58f84e64b5c136bf0588703d951ad6325cc5 (diff) | |
download | php-git-b0f461e9d9d63c81c07e257493e237df8bbee8c3.tar.gz |
- Fix Bug #34019 by popular demand: Implementing interface with a
__construct method strange behaviour
Diffstat (limited to 'tests/classes/interface_construct.phpt')
-rwxr-xr-x | tests/classes/interface_construct.phpt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/classes/interface_construct.phpt b/tests/classes/interface_construct.phpt deleted file mode 100755 index 406462e17a..0000000000 --- a/tests/classes/interface_construct.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -ZE2 An interface constructor signature must not be inherited ---SKIPIF-- -<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> ---FILE-- -<?php -error_reporting(4095); - -interface test { - public function __construct($foo); -} - -class foo implements test { - public function __construct() { - echo "foo\n"; - } -} - -$foo = new foo; - -?> ---EXPECT-- -foo - |