diff options
Diffstat (limited to 'tests/classes/interface_construct.phpt')
-rwxr-xr-x | tests/classes/interface_construct.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/classes/interface_construct.phpt b/tests/classes/interface_construct.phpt new file mode 100755 index 0000000000..406462e17a --- /dev/null +++ b/tests/classes/interface_construct.phpt @@ -0,0 +1,24 @@ +--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 + |