I\'m using Windows 10 Home Single Language 64-bit Operating System on my machine.
I\'ve installed the latest copy of XAMPP server o
The PHP_INI_SCAN_DIR
environment variable is not related to per-directory settings, it does something entirely different. Most Linux distributions build software packages in such a way that settings are kept in different files, so it's easier to install and uninstall individual packages. So this variable is just a trick to split the main configuration file into an undetermined number of separate files inside a directory:
/etc/php.d/
how the setting made in one environment(i.e. CLI) has effect in an entirely different environment(i.e. SAPI)?
It doesn't. The Apache module will not read the FastCGI settings just like Apache will not read IIS settings.