mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
22 lines
224 B
Plaintext
22 lines
224 B
Plaintext
|
--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)
|