Hi,
Each PHP version located in the wamp64/bin/php/ folder has two php.ini files.
The first one, named "php.ini" is the one that will be taken into account if we use this version in CLI mode.
The second, named "phpForApache.ini" is the one that will be used by the "WEB" PHP version, i.e. the version displayed in the PHP left click. It is used by Apache as a symbolic link named "php.ini" and located in wamp64/bin/apache/apache2.4.27/bin/.
The version declared PHP CLI is the one used by the internal php scripts of Wampserver.
This separation of the two "php.ini" files is made to avoid that an untimely modification of the php.ini WEB blocks the execution of the internal scripts of Wampserver.
Nothing prevents you from using the same PHP version in CLI and in WEB.
A tool allows to change the PHP CLI version:
Right-click -> Tools -> Change PHP CLI version
From this point on, since PHP CLI and PHP WEB are the same version, you can apply the same additional changes and extensions in the "real" php.ini file as you did in the "Apache" php.ini file, that is, in the phpForApache.ini file.
However, do not add the loading of the last section [xdebug].
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons