File size: 275 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--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) ""