PATH:
opt
/
alt
/
tests
/
alt-php53-pecl-xhprof-legacy_0.9.4-2.el8
/
tests
--TEST-- XHPRrof: 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"; ?> --EXPECT-- abc,def,ghi I am in foo()... 11 I am in bar()... Test for 'include_once' & 'require_once' operation main() : ct= 1; wt=*; main()==>dirname : ct= 6; wt=*; main()==>load::tests/xhprof_004_inc.php : ct= 1; wt=*; main()==>load::tests/xhprof_004_require.php: ct= 1; wt=*; main()==>run_init::tests/xhprof_004_inc.php: ct= 1; wt=*; main()==>run_init::tests/xhprof_004_require.php: ct= 1; wt=*; main()==>xhprof_disable : ct= 1; wt=*; run_init::tests/xhprof_004_inc.php==>explode: ct= 1; wt=*; run_init::tests/xhprof_004_inc.php==>foo: ct= 1; wt=*; run_init::tests/xhprof_004_inc.php==>implode: ct= 1; wt=*; run_init::tests/xhprof_004_require.php==>bar: ct= 1; wt=*; run_init::tests/xhprof_004_require.php==>explode: ct= 1; wt=*; run_init::tests/xhprof_004_require.php==>implode: ct= 1; wt=*; run_init::tests/xhprof_004_require.php==>strlen: ct= 1; wt=*;
[-] xhprof_005.phpt
[edit]
[-] xhprof_002.phpt
[edit]
[-] xhprof_007.phpt
[edit]
[-] xhprof_004_inc.php
[edit]
[-] xhprof_004.phpt
[edit]
[-] xhprof_001.phpt
[edit]
[-] xhprof_003.phpt
[edit]
[-] xhprof_004_require.php
[edit]
[+]
..
[-] xhprof_008.phpt
[edit]
[-] common.php
[edit]
[-] xhprof_006.phpt
[edit]