xdebug - *AMP里的PHP和Mac OS自带的PHP有什么关系吗?

WBOY
Release: 2016-06-06 20:15:38
Original
895 people have browsed it

我在试着照这个页面上的步骤安装xDebug, 但是到"brew install php54-xdebug"这个步骤后面就看得不是很懂了。
我的理解这个步骤是吧xdebug安装到了Mac自带的PHP上面,但是接下来的步骤里就开始在MAMP里面操作了:

cd /Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug

这是为什么呢?是因为Mac自带的PHP和MAMP里面的PHP是同个东西吗?

回复内容:

我在试着照这个页面上的步骤安装xDebug, 但是到"brew install php54-xdebug"这个步骤后面就看得不是很懂了。
我的理解这个步骤是吧xdebug安装到了Mac自带的PHP上面,但是接下来的步骤里就开始在MAMP里面操作了:

cd /Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug

这是为什么呢?是因为Mac自带的PHP和MAMP里面的PHP是同个东西吗?

没有任何关系。
系统中同时存在了两个php ,默认是系统自带的 php 版本,然后你安装了 MAMP,里面包含一个 php 版本,只不过是修改了系统 PATH 的路径,会先找到 MAMP 的 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!