PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/spec/tests/expressions/source_file_inclusion/test.php

http://github.com/facebook/hiphop-php
PHP | 22 lines | 12 code | 5 blank | 5 comment | 0 complexity | 7544493555657e1718bef49a55054c9f 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. <?php
  2. /*
  3. +-------------------------------------------------------------+
  4. | Copyright (c) 2015 Facebook, Inc. (http://www.facebook.com) |
  5. +-------------------------------------------------------------+
  6. */
  7. error_reporting(-1);
  8. function test()
  9. {
  10. echo "Inside test() in " . __FILE__ . "\n";
  11. echo "\$v1: $v1, \$v2: $v2\n";
  12. }
  13. $local1 = 100;
  14. var_dump($local1);
  15. echo "====\n";
  16. print_r(get_included_files());
  17. echo "====\n";