mirror of
https://github.com/php/php-src.git
synced 2024-12-29 03:39:59 +08:00
28 lines
397 B
Plaintext
28 lines
397 B
Plaintext
|
--TEST--
|
||
|
ZE2 An interface method allows additional default arguments
|
||
|
--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 bar();
|
||
|
}
|
||
|
|
||
|
class foo implements test {
|
||
|
|
||
|
public function bar($foo = NULL) {
|
||
|
echo "foo\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$foo = new foo;
|
||
|
$foo->bar();
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
foo
|
||
|
|