I'm using PHP 7.2.11 on my laptop that runs on Windows 10 Home Single Language 64-bit Operating System.
I've installed PHP 7.2.11 and Apache/2.4.35 (Win32) using the latest version of XAMPP for Windows.
I come across following paragraph from PHP Manual :
It is possible to configure PHP to scan for .ini files in a directory after reading php.ini. This can be done at compile time by setting the --with-config-file-scan-dir option. In PHP 5.2.0 and later, the scan directory can then be overridden at run time by setting the PHP_INI_SCAN_DIR environment variable.
I executed below code to check whether the environment variable PHP_INI_SCAN_DIR
exist on my machine or not by executing below code in my web browser :
<?php
var_dump(getenv('PHP_INI_SCAN_DIR'));
?>
Output of above code is :
bool(false)
The output clearly says that no such environment variable titled PHP_INI_SCAN_DIR
does exist on my machine.
Then, my question is do I required to set/define/declare/specify/assign an environment variable titled PHP_INI_SCAN_DIR
so that PHP can scan the additional directory/directories? If yes, then please let me know how should I define it and in which file it should be defined? If no, then how should PHP scan additional directory/directories?
Is this the case with Windows only that the environment variable PHP_INI_SCAN_DIR
doesn't exist or is this the case with every other operating system on which PHP is running?
Is there really any need to make use of the environment variable PHP_INI_SCAN_DIR
and scan additional directory/directories in my situation i.e. in Windows and XAMPP setup environment?
I'm asking this question because I've heard that mostly Linux operating systems do required to do all this stuff.
Thanks.