xhprof无法正常工作wamp 2.2 [英] xhprof not working wamp 2.2
问题描述
我已经从 http://windows下载了dll文件. php.net/downloads/pecl/releases/xhprof/0.10.6/,并将前32位文件保留在C:\ wamp \ bin \ php \ php5.3.13 \ ext中,并将其包含在我的php中. INI文件(扩展名为php_xhprof.dll).但是当我调用phpinfo()时,xhprof现在显示出来.我的日志中没有任何错误.
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.
推荐答案
有2个php.ini
文件,您可能编辑了错误的文件.
There are 2 php.ini
file and you may have edited the wrong one.
要确保您编辑正确的php.ini
文件,即Apache使用的文件,请使用wampmanager菜单,如下所示:
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
检查其中是否有新的extension
,如果没有,请将其添加到该文件中.
Check this has the new extension
and if not add it to this file.
\wamp\bin\php\php{version}\php.ini
中的php.ini
文件仅在运行PHP CLI时使用,即从命令行运行PHP
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
还请确保下载了xhprof
的线程安全版本,该版本将是zip文件名中带有-ts-
的版本.
Also make sure you downloaded the Thread Safe version of xhprof
that will be the ones with -ts-
in the zip file name.
vc9
或vc11
也应与用于编译Apache和PHP的编译器匹配.如果您使用的是PHP5.3(非常老),则最好是它是VC9
,但是您的Apache/PHP很可能已经用VC6
进行了编译,这意味着此扩展名将无法在您的版本中运行. Apache/PHP.
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.
这篇关于xhprof无法正常工作wamp 2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!