【问题标题】:Xdebug Tailored info page not giving good infoXdebug Tailored 信息页面没有提供好的信息
【发布时间】:2012-04-14 23:56:46
【问题描述】:

已安装并运行 Apache2.2、PHP 5.4(VC9) 32 位。尝试安装 xdebug 但失败并出现错误“加载 c:\program files (x86)\php\ext\php_xdebug-2.20RC1-5.4-vc9.dll”。文件名和路径正确。尝试使用 Xdebug 自定义安装向导,但没有返回任何有用的信息,即要下载的版本,路径全为空。

I installed php_xdebug-2.2.0RC1-5.4-vc9.dll to php extension folder.

相关的 php ini 行:

zend_extension = "c:\program files (x86)\php\ext\php_xdebug-2.20RC1-5.4-vc9.dll"


xdebug.remote_enable=On

xdebug.remote_autostart=On

xdebug.remote_handler=dbgp

xdebug.remote_host=127.0.0.1

xdebug.remote_port=9000

xdebug.remote_mode=req

相关的 Apache 配置设置:

PHPIniDir "C:/program files (x86)/php"


LoadModule php5_module "c:/program files (x86)/php/php5apache2_2.dll"

Xdebug定制安装页面返回的信息:

Xdebug installed: no

Server API: Apache 2.0 Handler

Windows: yes - Compiler: MS VC9 - Architecture: x86

Zend Server: no

PHP Version: 5.4.0

Zend API nr: 220100525

PHP API nr: 20100525

Debug Build: no

Thread Safe Build: yes

Configuration File Path: C:\windows

Configuration File: C:\Program Files (x86)\PHP\php.ini

扩展目录:

说明

Download
Move the downloaded file to
Edit C:\Program Files (x86)\PHP\php.ini and add the line
zend_extension = \
Restart the webserver

我试图发布我的 phpinfo,但堆栈一直说我的代码格式不正确 - 即使我在整个事情周围放置了 pre code /code /pre 块。所以这里是重要的东西:

PHP 版本 5.4.0

系统 Windows NT TTS-DAMON 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) i586 构建日期 2012 年 2 月 29 日 19:20:16 编译器 MSVC9 (Visual C++ 2008) 架构 x86 配置命令 cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-nsapi" "--without-mssql" "--没有-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk \oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" “--enable-com-dotnet” “--with-mcrypt=static” “--disable-static-analyze” “--with-pgo” 服务器 API Apache 2.0 处理程序 启用虚拟目录支持 配置文件 (php.ini) 路径 C:\windows 加载的配置文件 C:\Program Files (x86)\PHP\php.ini 扫描此目录以获取其他 .ini 文件(无) 已解析的其他 .ini 文件(无) PHP API 20100412 PHP 扩展 20100525 Zend 扩展 220100525 Zend Extension Build API220100525,TS,VC9 PHP 扩展构建 API20100525,TS,VC9 调试版本号 启用线程安全 Zend 信号处理已禁用 Zend 内存管理器已启用 mbstring 提供的 Zend 多字节支持 启用 IPv6 支持 DTrace 支持已禁用 注册 PHP Streams php、file、glob、data、http、ftp、zip、compress.zlib、compress.bzip2、phar 已注册的流套接字传输 tcp、udp 已注册的流过滤器 convert.iconv.、mcrypt.、mdecrypt.、string.rot13、string.toupper、string.tolower、string.strip_tags、convert.、消费、dechunk , zlib., bzip2.

Zend logo 这个程序使用了 Zend 脚本语言引擎: Zend Engine v2.4.0,版权所有 (c) 1998-2012 Zend Technologies

没关系

对于任何阅读本文的人,我找到了自己的答案。 PHP 不喜欢 xdebug 文件的默认名称。我只是将其重命名为 php_xdebug.dll 并且一切正常。

【问题讨论】:

  • 这很奇怪,因为 PHP 根本不关心它。我一直使用 Xdebug 下载提供的原始文件名。也许只是没有选择新配置的情况......

标签: php windows-7 xdebug apache2.2


【解决方案1】:

即使您已解决此问题,这也可以解释为什么它以前无法正常工作。看起来你错过了一个 .文件名上的版本号中的第二个 2 之后。在php.ini中应该是:

zend_extension = "c:\program files (x86)\php\ext\php_xdebug-2.2.0RC1-5.4-vc9.dll"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-19
    • 1970-01-01
    • 1970-01-01
    • 2021-01-23
    相关资源
    最近更新 更多