简体   繁体   English

OSX 10.9 xdebug错误的phpize

[英]OSX 10.9 xdebug wrong phpize

Quick background. 快速背景。

  • Running OSX Mavericks. 运行OSX Mavericks。

  • Want to run xdebug in NetBeans 想要在NetBeans中运行xdebug

  • Pear runs okay 梨还可以

xdebug stopped running after OSX upgrade. OSX升级后,xdebug停止运行。 Tried to reinstall. 试图重新安装。 During the install I get: 在安装过程中,我得到:

Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

But in phpinfo: 但是在phpinfo中:

PHP API 20121113
PHP Extension   20121212
Zend Extension  220121212

Best thing I can figure out (after hours of trawling through similar issues) is to make sure I am using the correct version of phpize. 我能弄清楚的最好的事情是(经过数小时的探索类似问题之后),以确保我使用的是正确版本的phpize。

which phpize returns: 哪个phpize返回:

/Applications/MAMP/bin/php/php5.5.3/bin/phpize

whereis phpize returns: phpize在哪里返回:

/usr/bin/phpize

My question is in two parts: 我的问题分为两个部分:

Is the different PHP API Version likely to stop xdebug from running and; 不同的PHP API版本是否可能会阻止xdebug的运行,并且; how can I make sure that I am using the correct version of phpize? 如何确定我使用的是正确版本的phpize?

A wrong API makes Xdebug to not even load, so yes, that is a problem. 错误的API使得Xdebug甚至无法加载,所以是的,这是一个问题。

To use the correct one, you will need to figure out which php binary you use in the first place. 要使用正确的php二进制文件,首先需要弄清楚使用哪个php二进制文件。 It is likely that if you use MAMP's php binary, its in the same directory as the phpize you need to use. 如果您使用MAMP的php二进制文件,则它可能与您需要使用的phpize位于同一目录中。 The same for /usr/bin/phpize, which should match /usr/bin/php's API numbers. / usr / bin / phpize相同,应该匹配/ usr / bin / php的API编号。 phpinfo() output might give you hints as to which PHP binary is being used. phpinfo()输出可能会提示您正在使用哪个PHP二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM