我在 apache 上运行 php。我已经下载了我认为是正确的 xdebug 编译 dll 的 php 版本 5.4 64 位窗口。我启用了线程安全并且它正在使用 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
最佳答案
为了确保您下载了正确的二进制文件,您可以使用位于http://xdebug.org/wizard.php 的向导。它会准确地告诉您要下载哪个文件以及您应该在哪个 php.ini 文件中放置 zend_extension 行(当然,您现在使用的是正确的,因为您会收到“加载失败”错误)。
关于php - XDebug 未在 Windows 7 64 位 PHP 5.4 上加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10019966/