/hphp/test/slow/var_export/footer-bug-1.php

http://github.com/facebook/hiphop-php · PHP · 11 lines · 7 code · 1 blank · 3 comment · 0 complexity · 306ce92507cc1d21b50137df4d027632 MD5 · raw file

  1. <?hh
  2. <<__EntryPoint>>
  3. function main_footer_bug_1() {
  4. $str = var_export(varray[Vector {new stdClass()}], true);
  5. // HHVM has a bug with var_export() where the output sometimes contains
  6. // unnecessary blank lines. We do this substitution here so that this
  7. // test's expected output is not affected by this bug.
  8. $str = strtr($str, darray["\n \n" => "\n"]);
  9. echo $str, "\nDone\n";
  10. }