phacility / xhprof

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.
http://pecl.php.net/package/xhprof
Apache License 2.0
2.6k stars 925 forks source link

help use xhprof Segmentation fault happen #93

Open wuhualiang opened 7 years ago

wuhualiang commented 7 years ago

php -v PHP 5.6.24 xhprof -v 0.9.4

run code to Reproduce bug <?php xhprof_enable(); class Index { public function index() { return 1; }

 public function test()
 {
     return 3;
 }

} echo 1; $method = "test"; $class = "Index"; echo in_array(strtolower($method),array_map('strtolower',get_class_methods($class)),TRUE); $data = xhprof_disable(); var_dump($data);