duanhunlou7051 2013-11-12 20:41
浏览 51

运行脚本时PHP崩溃了

Whenever I try to run a PHP script on the command line, it crashes imediately. I get this errors:

Xdebug requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.


Warning: PHP Startup: imap: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: gettext: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: yaz: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: pgsql: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: uploadprogress: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0

This is the PHP part of my .profile.

# make sure we use MAMP version of php and other binaries
export PATH=/Applications/MAMP/bin/php/php5.3.14/bin/:$PATH

# make sure we use MAMP version of mysql and other binaries
export PATH=/Applications/MAMP/Library/bin:$PATH

# make sure we are using the same php.ini as MAMP PRO
export PHPRC='/Library/Application Support/appsolute/MAMP PRO/conf/php.ini'

# make brew doctor happy
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH

This has been working for months without problems. But leatly I updated to Maverik and had to update XCode and lots of homebrew stuff. After all I thought all my PHP stuff is comming from MAMP and should not be related to this.

Any ideas?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?