/extension/tests/xhprof_004_inc.php

http://github.com/preinheimer/xhprof · PHP · 26 lines · 8 code · 12 blank · 6 comment · 0 complexity · eb869005932dcb9838b47188f210dbc3 MD5 · raw file

  1. <?php
  2. // This file is part of xhprof_004.phpt test.
  3. function foo() {
  4. echo "I am in foo()...\n";
  5. }
  6. // run some top-level code in this file.
  7. // The profiler should mark functions called from here as
  8. // children of the pseudo-function "run_init::<this_file_name>"
  9. // which represents the initialization block of a file.
  10. //
  11. $result1 = explode(" ", "abc def ghi");
  12. $result2 = implode(",", $result1);
  13. echo $result2 . "\n";
  14. foo();