我最近在Apache服务器上升级到PHP 7.2,并通过使用以下Xdebug向导为Mac创建xdebug.so的常规步骤: https://xdebug.org/wizard
但是,当我在浏览器中显示phpinfo()时,它并没有显示Xdebug的常规行,如下所示:
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.12, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
相反,我只看到了这一点(没有提到'with Xdebug'):
Zend logoThis program makes use of the Zend Scripting Language Engine:
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.22, Copyright (c) 1999-2018, by Zend Technologies
我已将其添加到我的php.ini中:
[xdebug]
zend_extension="/Applications/DevDesktop/php7_2/ext/xdebug.so"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.max_nesting_level = 1000
xdebug.profiler_enable_trigger=0
xdebug.profiler_enable_trigger_value=XDEBUG_PROFILE
xdebug.profiler_enable=off
xdebug.profiler_trigger=off
xdebug.profiler_append=off
xdebug.profiler_output_dir=/Users/gregmercer/Sites/gsb2
有什么我想念的吗?
嗯...只是发现了这个,但不确定是什么意思或我将如何纠正?
~/Downloads/xdebug-2.8.0beta2/xdebug-2.8.0beta2 $ php --version
Failed loading /Applications/DevDesktop/php7_2/ext/xdebug.so: dlopen(/Applications/DevDesktop/php7_2/ext/xdebug.so, 9): Symbol not found: _compiler_globals_id
Referenced from: /Applications/DevDesktop/php7_2/ext/xdebug.so
Expected in: flat namespace
in /Applications/DevDesktop/php7_2/ext/xdebug.so
Failed loading /Applications/DevDesktop/php7_2/ext/xdebug.so: dlopen(/Applications/DevDesktop/php7_2/ext/xdebug.so, 9): Symbol not found: _compiler_globals_id
Referenced from: /Applications/DevDesktop/php7_2/ext/xdebug.so
Expected in: flat namespace
in /Applications/DevDesktop/php7_2/ext/xdebug.so
PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
PHP 7.2.22 (cli) (built: Aug 30 2019 11:01:41) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.22, Copyright (c) 1999-2018, by Zend Technologies
~/Downloads/xdebug-2.8.0beta2/xdebug-2.8.0beta2 $