/hphp/test/slow/var_export/footer-bug-1.php
PHP | 11 lines | 7 code | 1 blank | 3 comment | 0 complexity | 306ce92507cc1d21b50137df4d027632 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
- <<__EntryPoint>>
- function main_footer_bug_1() {
- $str = var_export(varray[Vector {new stdClass()}], true);
- // HHVM has a bug with var_export() where the output sometimes contains
- // unnecessary blank lines. We do this substitution here so that this
- // test's expected output is not affected by this bug.
- $str = strtr($str, darray["\n \n" => "\n"]);
- echo $str, "\nDone\n";
- }