--TEST--
XHProf: Test Include File (load/run_init operations)
Author: Kannan
--FILE--
<?php

include_once dirname(__FILE__).'/common.php';

xhprof_enable();

// Include File:
//
// Note: the 2nd and 3rd attempts should be no-ops and
// will not show up in the profiler data. Only the first
// one should.

include_once dirname(__FILE__).'/xhprof_004_inc.php';
include_once dirname(__FILE__).'/xhprof_004_inc.php';
include_once dirname(__FILE__).'/xhprof_004_inc.php';


// require_once:
// Note: the 2nd and 3rd attempts should be no-ops and
// will not show up in the profiler data. Only the first
// one should.

require_once dirname(__FILE__).'/xhprof_004_require.php';
require_once dirname(__FILE__).'/xhprof_004_require.php';
require_once dirname(__FILE__).'/xhprof_004_require.php';

$output = xhprof_disable();

echo "Test for 'include_once' & 'require_once' operation\n";
print_canonical($output);
echo "\n";

?>
--EXPECTF--
abc,def,ghi
I am in foo()...
11
I am in bar()...
Test for 'include_once' & 'require_once' operation
main()                                  : ct=       1; wt=*;
main()==>bar                            : ct=       1; wt=*;
main()==>dirname                        : ct=       6; wt=*;
main()==>explode                        : ct=       2; wt=*;
main()==>foo                            : ct=       1; wt=*;
main()==>implode                        : ct=       2; wt=*;
main()==>load::%sxhprof_004_inc.php%w: ct=       1; wt=*;
main()==>load::%sxhprof_004_require.php%w: ct=       1; wt=*;
main()==>xhprof_disable                 : ct=       1; wt=*;