我在Apache上运行PHP。我已经下载了我认为适用于PHP 5.4 64位Windows版本的正确xdebug编译dll文件。我已启用线程安全,并且它正在使用VC9。我已经下载了这个dll并将其放置在这里:
C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll
以下是我的php.ini文件中的内容:
[xdebug]
zend_extension = "C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll"
我启动Apache时遇到了这个错误:
[Wed Apr 04 17:01:56 2012] [notice] Parent: Received restart signal -- Restarting the server.
Failed loading C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll
hild process is ending.
[Wed Apr 04 17:01:56 2012] [notice] Apache/2.2.22 (Win32) PHP/5.4.0 configured -- resuming normal operations
[Wed Apr 04 17:01:56 2012] [notice] Server built: Jan 28 2012 11:16:39
[Wed Apr 04 17:01:56 2012] [notice] Parent: Created child process 2120
[Wed Apr 04 17:01:57 2012] [notice] Child 2120: Child process is running
[Wed Apr 04 17:01:57 2012] [notice] Child 2120: Acquired the start mutex.
[Wed Apr 04 17:01:57 2012] [notice] Child 2120: Starting 64 worker threads.
[Wed Apr 04 17:01:57 2012] [notice] Child 5624: Released the start mutex
[Wed Apr 04 17:01:58 2012] [notice] Child 5624: All worker threads have exited.
[Wed Apr 04 17:01:58 2012] [notice] Child 5624: Child process is exiting
Failed loading C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll
zend_extension = C:\PHP\ext
。但是为了使其正常工作,我必须定义实际的文件路径,就像这个问题的示例中那样,而不仅仅是它所在的目录。此外,您需要添加更多行到php.ini才能使其正常工作。按照此指南操作即可。 - Spencer Williams