我想使用blackfire来分析symfony的php命令。我遵循入门一节,这里是mac os的https://blackfire.io/getting-started。
然后,我使用以下内容创建了一个文件test.php来测试blackfire:
<?php
echo "Hello World !";但当我这么做的时候
blackfire run php test.php发生错误:
PHP Warning: PHP Startup: blackfire: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
Warning: PHP Startup: blackfire: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0如果我删除php.ini的以下代码,我不会有任何错误,但blackfire不会给我url来查看调试结果
[blackfire]
extension="/usr/local/Cellar/blackfire-php56/1.0.0/blackfire.so"
blackfire.agent_timeout = 0.25有人能帮帮我吗?
发布于 2015-08-17 22:48:42
好吧,我找到了我的错误,
$ php -v给我
PHP 5.5.25 (cli)
[...]我安装了错误的blackfire版本
brew install blackfire-php56所以我卸载了blackfire,然后重新安装
brew uninstall blackfire-php56
brew install blackfire-php55最后我更新了我的php.ini
[blackfire]
extension="/usr/local/Cellar/blackfire-php55/1.0.0/blackfire.so"
blackfire.agent_timeout = 0.25https://stackoverflow.com/questions/32052494
复制相似问题