Arquivos
hhvm/hphp/test/vm/define.php.exp
T
hermanv 96350d1a66 add support for late bound constants to the defined function
The defined function did not have code to deal with "static::const" expressions. Added the necessary logic.
2013-03-12 14:22:14 -07:00

14 linhas
532 B
Plaintext

HipHop Warning: Constant FOO already defined in hphp/test/vm/define.php on line 14
HipHop Warning: Constants may only evaluate to scalar values in hphp/test/vm/define.php on line 15
int(42)
string(5) "hello"
=== Enter define_b.php ===
int(42)
string(5) "baz_b"
=== Leave define_b.php ===
string(5) "baz_b"
HipHop Warning: Constant BAZ already defined in hphp/test/vm/define.php on line 23
string(5) "baz_b"
HELLOHELLO
HipHop Fatal error: Cannot access static:: when no class scope is active in hphp/test/vm/define.php on line 34