OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
Util
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
AuthHelper.php
1.66 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Bitbucket.php
8.38 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ComposerMirror.php
1.75 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ConfigValidator.php
5.45 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ErrorHandler.php
2.24 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Filesystem.php
21.29 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Git.php
14.3 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitHub.php
4.52 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitLab.php
5.42 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
IniHelper.php
1.91 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
NoProxyPattern.php
4.07 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Perforce.php
16.72 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Platform.php
2.54 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ProcessExecutor.php
5.49 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
RemoteFilesystem.php
41.17 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Silencer.php
2.12 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SpdxLicense.php
570 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
StreamContextFactory.php
7.13 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Svn.php
9.31 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
TlsHelper.php
6.51 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
Url.php
2.86 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: IniHelper.php
Close
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Util; /** * Provides ini file location functions that work with and without a restart. * When the process has restarted it uses a tmp ini and stores the original * ini locations in an environment variable. * * @author John Stevenson <john-stevenson@blueyonder.co.uk> */ class IniHelper { const ENV_ORIGINAL = 'COMPOSER_ORIGINAL_INIS'; /** * 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 empty. * * @return array */ public static function getAll() { $env = getenv(self::ENV_ORIGINAL); if (false !== $env) { return explode(PATH_SEPARATOR, $env); } $paths = array(strval(php_ini_loaded_file())); if ($scanned = php_ini_scanned_files()) { $paths = array_merge($paths, array_map('trim', explode(',', $scanned))); } return $paths; } /** * Describes the location of the loaded php.ini file(s) * * @return string */ public static function getMessage() { $paths = self::getAll(); if (empty($paths[0])) { array_shift($paths); } $ini = array_shift($paths); if (empty($ini)) { return 'A php.ini file does not exist. You will have to create one.'; } if (!empty($paths)) { return 'Your command-line PHP is using multiple ini files. Run `php --ini` to show them.'; } return 'The php.ini used by your command-line PHP is: '.$ini; } }