X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-xhprof-tideways_5.0.4-2.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-xhprof-tideways_5.0.4-2.el8
/
tests
/
ðŸ“
..
📄
common.php
(1.56 KB)
📄
xhprof_001.phpt
(4.62 KB)
📄
xhprof_001.phpt.php82-tests-fix
(4.03 KB)
📄
xhprof_002.phpt
(2.01 KB)
📄
xhprof_002.phpt.php82-tests-fix
(1.87 KB)
📄
xhprof_003.phpt
(1.49 KB)
📄
xhprof_003.phpt.php82-tests-fix
(1.42 KB)
📄
xhprof_004.phpt
(639 B)
📄
xhprof_004.phpt.php82-tests-fix
(567 B)
📄
xhprof_005.phpt
(199 B)
📄
xhprof_006.phpt
(968 B)
📄
xhprof_006.phpt.php82-tests-fix
(896 B)
📄
xhprof_007.phpt
(1.17 KB)
📄
xhprof_007.phpt.php82-tests-fix
(1000 B)
📄
xhprof_008.inc
(97 B)
📄
xhprof_008.phpt
(770 B)
📄
xhprof_008.phpt.php82-tests-fix
(577 B)
Editing: xhprof_007.phpt
--TEST-- Tideways: call_user_func_array --FILE-- <?php include_once dirname(__FILE__).'/common.php'; function foo ($x) { return $x * $x; } $counter = new class { public function __invoke ($x) { return $x * $x; } }; tideways_xhprof_enable(); call_user_func("foo", 2); call_user_func_array("foo", [2]); call_user_func_array(function ($x) { return $x * $x; }, [2]); call_user_func_array($counter, [2]); $output = tideways_xhprof_disable(); print_canonical($output); --EXPECTF-- call_user_func : ct= 1; wt=*; call_user_func==>call_user_func@1 : ct= 1; wt=*; call_user_func@1==>foo : ct= 1; wt=*; call_user_func_array : ct= 3; wt=*; call_user_func_array==>call_user_func_array@1: ct= 3; wt=*; call_user_func_array@1==>class@anonymous::__invoke: ct= 1; wt=*; call_user_func_array@1==>foo : ct= 1; wt=*; call_user_func_array@1==>{closure} : ct= 1; wt=*; main() : ct= 1; wt=*; tideways_xhprof_disable : ct= 1; wt=*; tideways_xhprof_disable==>tideways_xhprof_disable@1: ct= 1; wt=*;
Upload File
Create Folder