xhprof not working wamp 2.2

浪子不回头ぞ 提交于 2019-12-12 04:08:32

问题


I have downloaded the dll file from http://windows.php.net/downloads/pecl/releases/xhprof/0.10.6/ and kept the first 32 bit file at C:\wamp\bin\php\php5.3.13\ext and also include it in my php.ini file (as extension=php_xhprof.dll). But when I call phpinfo() xhprof is now showing. I am not getting any errors in my log.


回答1:


There are 2 php.ini file and you may have edited the wrong one.

To make sure you edit the correct php.ini file i.e. the one used by Apache use the wampmanager menus like so:

left click wampmanager -> PHP -> php.ini

Check this has the new extension and if not add it to this file.

The php.ini file in \wamp\bin\php\php{version}\php.ini is only used when you are running PHP CLI i.e. running PHP from the Command Line

Also make sure you downloaded the Thread Safe version of xhprof that will be the ones with -ts- in the zip file name.

Also the vc9 or vc11 should match the compiler used to compile your Apache and PHP. If you are using PHP5.3 (very old) then you had better hope it is VC9 but it is quite possible that your Apache/PHP may have been compiled with VC6 which means this extension will not run with your version of Apache/PHP.



来源:https://stackoverflow.com/questions/36078930/xhprof-not-working-wamp-2-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!