bug41633_4.phpt 178 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
--TEST--
Bug #41633.4 (self:: doesn't work for constants)
--FILE--
<?php
class Foo {
	const A = self::B;
	const B = "ok";
}
var_dump(defined("Foo::A"));
?>
--EXPECT--
bool(true)