[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: bootstrap.php
File is not writable. Editing disabled.
<?php declare(strict_types = 1); namespace PHPStan; use Composer\Autoload\ClassLoader; use function class_exists; use const PHP_VERSION_ID; final class PharAutoloader { /** @var ClassLoader */ private static $composerAutoloader; /** @var bool */ private static $polyfillsLoaded = false; final public static function loadClass(string $class): void { if (!extension_loaded('phar') || defined('__PHPSTAN_RUNNING__')) { return; } if (strpos($class, '_PHPStan_') === 0) { if (!in_array('phar', stream_get_wrappers(), true)) { throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.'); } if (self::$composerAutoloader === null) { self::$composerAutoloader = require 'phar://' . __DIR__ . '/phpstan.phar/vendor/autoload.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/async/src/functions_include.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise/src/functions_include.php'; } self::$composerAutoloader->loadClass($class); return; } if (strpos($class, 'PHPStan\\') !== 0 || strpos($class, 'PHPStan\\PhpDocParser\\') === 0) { return; } if (!in_array('phar', stream_get_wrappers(), true)) { throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.'); } if (!self::$polyfillsLoaded) { self::$polyfillsLoaded = true; if ( PHP_VERSION_ID < 80000 && empty($GLOBALS['__composer_autoload_files']['a4a119a56e50fbb293281d9a48007e0e']) && !class_exists(\Symfony\Polyfill\Php80\Php80::class, false) ) { $GLOBALS['__composer_autoload_files']['a4a119a56e50fbb293281d9a48007e0e'] = true; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php80/Php80.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php80/bootstrap.php'; } if ( empty($GLOBALS['__composer_autoload_files']['0e6d7bf4a5811bfa5cf40c5ccd6fae6a']) && !class_exists(\Symfony\Polyfill\Mbstring\Mbstring::class, false) ) { $GLOBALS['__composer_autoload_files']['0e6d7bf4a5811bfa5cf40c5ccd6fae6a'] = true; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-mbstring/Mbstring.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-mbstring/bootstrap.php'; } if ( empty($GLOBALS['__composer_autoload_files']['e69f7f6ee287b969198c3c9d6777bd38']) && !class_exists(\Symfony\Polyfill\Intl\Normalizer\Normalizer::class, false) ) { $GLOBALS['__composer_autoload_files']['e69f7f6ee287b969198c3c9d6777bd38'] = true; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-intl-normalizer/Normalizer.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-intl-normalizer/bootstrap.php'; } if ( PHP_VERSION_ID < 70300 && empty($GLOBALS['__composer_autoload_files']['0d59ee240a4cd96ddbb4ff164fccea4d']) && !class_exists(\Symfony\Polyfill\Php73\Php73::class, false) ) { $GLOBALS['__composer_autoload_files']['0d59ee240a4cd96ddbb4ff164fccea4d'] = true; // already loaded by bootstrap inside the hrtime condition // require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php73/Php73.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php73/bootstrap.php'; } if ( PHP_VERSION_ID < 70400 && empty($GLOBALS['__composer_autoload_files']['b686b8e46447868025a15ce5d0cb2634']) && !class_exists(\Symfony\Polyfill\Php74\Php74::class, false) ) { $GLOBALS['__composer_autoload_files']['b686b8e46447868025a15ce5d0cb2634'] = true; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php74/Php74.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php74/bootstrap.php'; } if ( !extension_loaded('intl') && empty($GLOBALS['__composer_autoload_files']['8825ede83f2f289127722d4e842cf7e8']) && !class_exists(\Symfony\Polyfill\Intl\Grapheme\Grapheme::class, false) ) { $GLOBALS['__composer_autoload_files']['8825ede83f2f289127722d4e842cf7e8'] = true; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-intl-grapheme/Grapheme.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-intl-grapheme/bootstrap.php'; } if ( PHP_VERSION_ID < 80100 && empty ($GLOBALS['__composer_autoload_files']['23c18046f52bef3eea034657bafda50f']) && !class_exists(\Symfony\Polyfill\Php81\Php81::class, false) ) { $GLOBALS['__composer_autoload_files']['23c18046f52bef3eea034657bafda50f'] = true; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php81/Php81.php'; require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/symfony/polyfill-php81/bootstrap.php'; } } $filename = str_replace('\\', DIRECTORY_SEPARATOR, $class); if (strpos($class, 'PHPStan\\BetterReflection\\') === 0) { $filename = substr($filename, strlen('PHPStan\\BetterReflection\\')); $filepath = 'phar://' . __DIR__ . '/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/' . $filename . '.php'; } else { $filename = substr($filename, strlen('PHPStan\\')); $filepath = 'phar://' . __DIR__ . '/phpstan.phar/src/' . $filename . '.php'; } if (!file_exists($filepath)) { return; } require $filepath; } } spl_autoload_register([PharAutoloader::class, 'loadClass']);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.59 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: N/A