Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.118.140.120
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
phpunit /
phpunit /
src /
Util /
Delete
Unzip
Name
Size
Permission
Date
Action
Annotation
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Log
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
PHP
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
TestDox
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Blacklist.php
5.37
KB
-rw-r--r--
2020-11-17 16:24
Color.php
3.89
KB
-rw-r--r--
2020-11-17 16:24
Configuration.php
35.86
KB
-rw-r--r--
2020-11-17 16:24
ConfigurationGenerator.php
1.85
KB
-rw-r--r--
2020-11-17 16:24
ErrorHandler.php
3.71
KB
-rw-r--r--
2020-11-17 16:24
Exception.php
457
B
-rw-r--r--
2020-11-17 16:24
FileLoader.php
2.29
KB
-rw-r--r--
2020-11-17 16:24
Filesystem.php
968
B
-rw-r--r--
2020-11-17 16:24
Filter.php
3.15
KB
-rw-r--r--
2020-11-17 16:24
Getopt.php
4.98
KB
-rw-r--r--
2020-11-17 16:24
GlobalState.php
4.83
KB
-rw-r--r--
2020-11-17 16:24
InvalidDataSetException.php
471
B
-rw-r--r--
2020-11-17 16:24
Json.php
2.6
KB
-rw-r--r--
2020-11-17 16:24
Printer.php
3.33
KB
-rw-r--r--
2020-11-17 16:24
RegularExpression.php
725
B
-rw-r--r--
2020-11-17 16:24
Test.php
29.59
KB
-rw-r--r--
2020-11-17 16:24
TextTestListRenderer.php
1.31
KB
-rw-r--r--
2020-11-17 16:24
Type.php
1.14
KB
-rw-r--r--
2020-11-17 16:24
VersionComparisonOperator.php
1.41
KB
-rw-r--r--
2020-11-17 16:24
XdebugFilterScriptGenerator.php
1.74
KB
-rw-r--r--
2020-11-17 16:24
Xml.php
8.39
KB
-rw-r--r--
2020-11-17 16:24
XmlTestListRenderer.php
2.54
KB
-rw-r--r--
2020-11-17 16:24
Save
Rename
<?php declare(strict_types=1); /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Util; use Closure; /** * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class GlobalState { /** * @var string[] */ private const SUPER_GLOBAL_ARRAYS = [ '_ENV', '_POST', '_GET', '_COOKIE', '_SERVER', '_FILES', '_REQUEST', ]; /** * @throws Exception */ public static function getIncludedFilesAsString(): string { return self::processIncludedFilesAsString(\get_included_files()); } /** * @param string[] $files * * @throws Exception */ public static function processIncludedFilesAsString(array $files): string { $blacklist = new Blacklist; $prefix = false; $result = ''; if (\defined('__PHPUNIT_PHAR__')) { $prefix = 'phar://' . __PHPUNIT_PHAR__ . '/'; } for ($i = \count($files) - 1; $i > 0; $i--) { $file = $files[$i]; if (!empty($GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST']) && \in_array($file, $GLOBALS['__PHPUNIT_ISOLATION_BLACKLIST'], true)) { continue; } if ($prefix !== false && \strpos($file, $prefix) === 0) { continue; } // Skip virtual file system protocols if (\preg_match('/^(vfs|phpvfs[a-z0-9]+):/', $file)) { continue; } if (!$blacklist->isBlacklisted($file) && \is_file($file)) { $result = 'require_once \'' . $file . "';\n" . $result; } } return $result; } public static function getIniSettingsAsString(): string { $result = ''; foreach (\ini_get_all(null, false) as $key => $value) { $result .= \sprintf( '@ini_set(%s, %s);' . "\n", self::exportVariable($key), self::exportVariable((string) $value) ); } return $result; } public static function getConstantsAsString(): string { $constants = \get_defined_constants(true); $result = ''; if (isset($constants['user'])) { foreach ($constants['user'] as $name => $value) { $result .= \sprintf( 'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n", $name, $name, self::exportVariable($value) ); } } return $result; } public static function getGlobalsAsString(): string { $result = ''; foreach (self::SUPER_GLOBAL_ARRAYS as $superGlobalArray) { if (isset($GLOBALS[$superGlobalArray]) && \is_array($GLOBALS[$superGlobalArray])) { foreach (\array_keys($GLOBALS[$superGlobalArray]) as $key) { if ($GLOBALS[$superGlobalArray][$key] instanceof Closure) { continue; } $result .= \sprintf( '$GLOBALS[\'%s\'][\'%s\'] = %s;' . "\n", $superGlobalArray, $key, self::exportVariable($GLOBALS[$superGlobalArray][$key]) ); } } } $blacklist = self::SUPER_GLOBAL_ARRAYS; $blacklist[] = 'GLOBALS'; foreach (\array_keys($GLOBALS) as $key) { if (!$GLOBALS[$key] instanceof Closure && !\in_array($key, $blacklist, true)) { $result .= \sprintf( '$GLOBALS[\'%s\'] = %s;' . "\n", $key, self::exportVariable($GLOBALS[$key]) ); } } return $result; } private static function exportVariable($variable): string { if (\is_scalar($variable) || $variable === null || (\is_array($variable) && self::arrayOnlyContainsScalars($variable))) { return \var_export($variable, true); } return 'unserialize(' . \var_export(\serialize($variable), true) . ')'; } private static function arrayOnlyContainsScalars(array $array): bool { $result = true; foreach ($array as $element) { if (\is_array($element)) { $result = self::arrayOnlyContainsScalars($element); } elseif (!\is_scalar($element) && $element !== null) { $result = false; } if (!$result) { break; } } return $result; } }