Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
247 views
in Technique[技术] by (71.8m points)

php - Xdebug 3 error message in console: setting 'xdebug.collect_params' has been removed

After upgrading to Xdebug 3 on Ubuntu I see following error message in console after each script execution from command line:

Xdebug: [Config] The setting 'xdebug.collect_params' has been removed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.collect_params (See: https://xdebug.org/docs/errors#CFG-C-REMOVED)

I haven't this setting anywhere in php.ini or xdebug.ini files

PHP verison:

PHP 8.0.0 (cli) (built: Nov 27 2020 12:26:05) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies with Xdebug v3.0.1, Copyright (c) 2002-2020, by Derick Rethans

Issue also can be reproduced on php 7.4 and on by other devs


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I've found ini_set('xdebug.collect_params', 3) in core file of outdated Kohana framework that used on my project.

I removed this default setting from code


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...