function XdebugHandler::getAllIniFiles
Returns an array of php.ini locations with at least one entry
The equivalent of calling php_ini_loaded_file then php_ini_scanned_files. The loaded ini location is the first entry and may be an empty string.
Return value
non-empty-list<string>
2 calls to XdebugHandler::getAllIniFiles()
- IniHelper::getAll in vendor/
composer/ composer/ src/ Composer/ Util/ IniHelper.php - Returns an array of php.ini locations with at least one entry
- XdebugHandler::prepareRestart in vendor/
composer/ xdebug-handler/ src/ XdebugHandler.php - Returns the command line array if everything was written for the restart
File
-
vendor/
composer/ xdebug-handler/ src/ XdebugHandler.php, line 190
Class
- XdebugHandler
- @author John Stevenson <john-stevenson@blueyonder.co.uk>
Namespace
Composer\XdebugHandlerCode
public static function getAllIniFiles() : array {
if (self::$name !== null) {
$env = getenv(self::$name . self::SUFFIX_INIS);
if (false !== $env) {
return explode(PATH_SEPARATOR, $env);
}
}
$paths = [
(string) php_ini_loaded_file(),
];
$scanned = php_ini_scanned_files();
if ($scanned !== false) {
$paths = array_merge($paths, array_map('trim', explode(',', $scanned)));
}
return $paths;
}