wamp php CLI 已停止工作 [英] wamp php CLI has stopped working

查看:41
本文介绍了wamp php CLI 已停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 php 5.3.10apache 2.2.21 安装了 wamp server 2.2.但是当我想执行一些 symfony 命令时,我的 Windows 7 Home Premium 的响应是:

I installed wamp server 2.2 with php 5.3.10 and apache 2.2.21. But when I want to execute some symfony command the response from my Windows 7 Home Premium is:

php -> CLI has stopped working

推荐答案

我遇到这个错误很长时间了.原来我使用的是稍旧版本的 Xdebug (php_xdebug-2.2.0-5.4-vc9.dll).

I had this error for a long time. It turned out I was on a slightly older version of Xdebug (php_xdebug-2.2.0-5.4-vc9.dll).

我用php_xdebug-2.2.2-5.4-vc9.dll"替换了那个文件,它立即神奇地开始工作.

I replaced that file with "php_xdebug-2.2.2-5.4-vc9.dll" and it magically started working immediately.

我在 wamp 上,我用最新的文件名更新了两个 php.ini 文件(一个用于 cli,一个用于正常使用)."zend_extension = c:\wamp\bin\php\php5.4.3\ext\php_xdebug-2.2.2-5.4-vc9.dll"

I'm on wamp, and I updated both php.ini files (one is for cli, one for normal use) with the latest filename. "zend_extension = c:\wamp\bin\php\php5.4.3\ext\php_xdebug-2.2.2-5.4-vc9.dll"

然后将新文件放入 php ext 文件夹并立即成功.希望这会有所帮助.

Then dropped the new file into the php ext folder and instant success. Hope this helps.

这篇关于wamp php CLI 已停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆