/hphp/test/zend/good/tests/lang/bug30862.php
PHP | 19 lines | 14 code | 5 blank | 0 comment | 0 complexity | 463f3eca5bd52c5f2a716176f082ee3e MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- class T {
- static $a = darray[false=>"false", true=>"true"];
- }
- const X = 0;
- const Y = 1;
- class T2 {
- static $a = darray[X=>"false", Y=>"true"];
- }
- <<__EntryPoint>> function main(): void {
- print_r(T::$a);
- echo "\n----------\n";
- print_r(T2::$a);
- }