PageRenderTime 56ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/tests/lang/bug30862.php

http://github.com/facebook/hiphop-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
  1. <?hh
  2. class T {
  3. static $a = darray[false=>"false", true=>"true"];
  4. }
  5. const X = 0;
  6. const Y = 1;
  7. class T2 {
  8. static $a = darray[X=>"false", Y=>"true"];
  9. }
  10. <<__EntryPoint>> function main(): void {
  11. print_r(T::$a);
  12. echo "\n----------\n";
  13. print_r(T2::$a);
  14. }