dis-bench / src /php /php-src /Zend /tests /constants /bug76430.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
275 Bytes
--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) ""