summaryrefslogtreecommitdiff
path: root/Zend/tests/bug76430.phpt
blob: f122d00984a35427213addc89036b46fe6af7969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #76430: __METHOD__ inconsistent outside of method
--FILE--
<?php

class Foo {
    const X = __METHOD__;
}
function foo() {
    class Bar {
        const X = __METHOD__;
    }
}

foo();
var_dump(Foo::X);
var_dump(Bar::X);

?>
--EXPECT--
string(0) ""
string(0) ""