尝试在 PHP 5.4 中使用 xhprof 时出现以下错误
PHP Warning: PHP Startup: xhprof: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
几天前我安装了 5.4 时,看起来我与 PHP 版本有些冲突。php-v 显示 5.4 但 php-config --version 显示 5.3 并且 phpize 显示 API=20090626 而 PHP 是使用 API=20100525 编译的