小编Dee*_*Dee的帖子

如何使Xdebug适用于php 7.3和apache(MACOS)

我正在尝试让Xdebug(我在pecl上安装了2.7)可以在php上工作,但是却收到以下错误。

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

PHP 7.3.3 (cli) (built: Mar  8 2019 16:40:07) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.3, Copyright (c) 1999-2018, by Zend Technologies
Run Code Online (Sandbox Code Playgroud)

我已经使用Homebrew安装了最新版本的PHP 7.3,但是Apache使用的是PHP版本7.1.23。我认为我遇到了一个问题,因为我使用的是错误的Zend API版本。

httpd.conf中的php config是

LoadModule php7_module libexec/apache2/libphp7.so
Run Code Online (Sandbox Code Playgroud)

phpize提供以下内容。

/usr/local/bin/phpize -v
        Configuring for: …
Run Code Online (Sandbox Code Playgroud)

php apache xdebug

5
推荐指数
1
解决办法
548
查看次数

标签 统计

apache ×1

php ×1

xdebug ×1