summaryrefslogtreecommitdiff
path: root/Zend/tests/inter_02.phpt
blob: 34e8baa5dca1f4f8d17e98cc8608c00d418031db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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)