php-src/Zend/tests/inter_02.phpt
2008-12-04 20:12:30 +00:00

22 lines
224 B
PHP

--TEST--
Namespace constant as value default
--FILE--
<?php
namespace foo;
error_reporting(E_ALL);
interface foo {
const foo = 2;
}
function foo($x = \foo\foo::foo) {
var_dump($x);
}
foo();
?>
--EXPECT--
int(2)