PATH:
opt
/
alt
/
tests
/
alt-php84-pecl-xhprof-tideways_5.0.4-2.el8
/
tests
--TEST-- xhprof: dont disable no memory leak --INI-- tideways_xhprof.clock_use_rdtsc=1 --SKIPIF-- <?php if (PHP_OS !== "Linux") { echo "skip: Requires linux\n"; } --FILE-- <?php include_once dirname(__FILE__).'/common.php'; var_dump(ini_get("tideways_xhprof.clock_use_rdtsc")); ob_start(); phpinfo(); $content = ob_get_clean(); $lines = explode(PHP_EOL, $content); foreach ($lines as $line) { if (strpos($line, "Clock Source =>") !== false) { echo $line . PHP_EOL; } } function foo($x) { } // 1: Sanity test a simple profile run tideways_xhprof_enable(); foo("this is a test"); $output = tideways_xhprof_disable(); print_canonical($output); --EXPECTF-- string(1) "1" Clock Source => tsc foo : ct= 1; wt=*; main() : ct= 1; wt=*; tideways_xhprof_disable : ct= 1; wt=*; tideways_xhprof_disable==>tideways_xhprof_disable@1: ct= 1; wt=*;
[-] xhprof_006.phpt.php82-tests-fix
[edit]
[-] xhprof_001.phpt
[edit]
[-] xhprof_007.phpt.php84-tests-fix
[edit]
[-] xhprof_004.phpt
[edit]
[-] xhprof_002.phpt.php82-tests-fix
[edit]
[-] xhprof_008.phpt.php82-tests-fix
[edit]
[-] xhprof_003.phpt.php82-tests-fix
[edit]
[-] xhprof_002.phpt
[edit]
[-] xhprof_008.phpt
[edit]
[-] xhprof_004.phpt.php84-tests-fix
[edit]
[-] xhprof_005.phpt
[edit]
[+]
..
[-] xhprof_007.phpt
[edit]
[-] xhprof_003.phpt
[edit]
[-] common.php
[edit]
[-] xhprof_008.inc
[edit]
[-] xhprof_004.phpt.php82-tests-fix
[edit]
[-] xhprof_007.phpt.php82-tests-fix
[edit]
[-] xhprof_001.phpt.php82-tests-fix
[edit]
[-] xhprof_006.phpt
[edit]