Home > Backend Development > PHP Tutorial > 5_3_x_nts_comp版本的ZendDebugger在PHP5.3(Thread Safety)下安装不成功的原因(转)

5_3_x_nts_comp版本的ZendDebugger在PHP5.3(Thread Safety)下安装不成功的原因(转)

WBOY
Release: 2016-06-13 13:04:43
Original
967 people have browsed it

5_3_x_nts_comp版本的ZendDebugger在PHP5.3(Thread Safety)上安装不成功的原因(转)


自从用上了PHP5.3,问题还真是多,自上次出现连接MS SQL Server的问题后,这次在安装 Zend Debugger时又出现了问题。按照Zend官方给出的Zend Debugger安装步骤,从?这里?下载了最新的 5.2版本的Studio Web Debugger,从解压出的ZendDebugger-v5.2-cygwin_nt-i386\5_3_x_nts_comp目录中复制ZendDebugger.dll 到PHP安装文件夹下的ext目录,然后编辑php.ini文件,在文件最后加入一下三行:

zend_extension = "d:/php/ext/ZendDebugger.dll"
zend_debugger.allow_hosts=?127.0.0.1
zend_debugger.expose_remotely=always

然后把dummy.php文件复制到apached的 "DocumentRoot"目录(在http.conf文件中设定),可重启Apache服务后 用phpinfo()显示的页面中并没有Zend Debugger,很明显,安装没有成功。

回过头再仔细看Zend的安装步骤介绍,发现zend_extension这项配置有两种,除了zend_extension以外,还有设置为zend_extension_ts的,分别适用于Non-Thread-Safe和Thread-Safe版的PHP,而我安装的PHP是Thread-Safe版的(通过phpinfo() 页面的Thread Safety选项可以查看到),所以应该用zend_extension_ts,但是我下载的Studio Web Debugger 针对php 5.3版的只有nts版的ZendDebugger.dll (从文件夹名称可以看出-5_3_x_nts_comp).

仔细搜了一下,终于找到了答案,在Zend 论坛里一位Zend 员工明确地回复:"目前还没有针对 Thread-Safe 的PHP 5.3发布相应的Zend Debugger的计划",这个帖子?里,另一位Zend员工针对用户在Thread Safe 版PHP 5.3 安装 Zend Debugger失败的原因做了更详细的解释:

?Zend stopped supporting the thread safe architecture when Microsoft also decided to implement its PHP engine with the fast-cgi architecture which means non-thread-safe.

他建议用户用安装Zend Server(目前已经支持PHP 5.3)--? Zend Server包含的是Non Thread Safe 版的PHP.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template