!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/composer/composer/src/Composer/DependencyResolver/   drwxr-xr-x
Free 13.38 GB of 57.97 GB (23.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SolverProblemsException.php (4.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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\DependencyResolver;

use 
Composer\Util\IniHelper;
use 
Composer\Repository\RepositorySet;

/**
 * @author Nils Adermann <naderman@naderman.de>
 */
class SolverProblemsException extends \RuntimeException
{
    protected 
$problems;
    protected 
$learnedPool;

    public function 
__construct(array $problems, array $learnedPool)
    {
        
$this->problems $problems;
        
$this->learnedPool $learnedPool;

        
parent::__construct('Failed resolving dependencies with '.count($problems).' problems, call getPrettyString to get formatted details'2);
    }

    public function 
getPrettyString(RepositorySet $repositorySetRequest $requestPool $pool$isVerbose$isDevExtraction false)
    {
        
$installedMap $request->getPresentMap(true);
        
$hasExtensionProblems false;
        
$isCausedByLock false;

        
$problems = array();
        foreach (
$this->problems as $problem) {
            
$problems[] = $problem->getPrettyString($repositorySet$request$pool$isVerbose$installedMap$this->learnedPool)."\n";

            if (!
$hasExtensionProblems && $this->hasExtensionProblems($problem->getReasons())) {
                
$hasExtensionProblems true;
            }

            
$isCausedByLock |= $problem->isCausedByLock($repositorySet$request$pool);
        }

        
$i 1;
        
$text "\n";
        foreach (
array_unique($problems) as $problem) {
            
$text .= "  Problem ".($i++).$problem;
        }

        
$hints = array();
        if (!
$isDevExtraction && (strpos($text'could not be found') || strpos($text'no matching package found'))) {
            
$hints[] = "Potential causes:\n - A typo in the package name\n - The package is not available in a stable-enough version according to your minimum-stability setting\n   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.\n - It's a private package and you forgot to add a custom repository to find it\n\nRead <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.";
        }

        if (
$hasExtensionProblems) {
            
$hints[] = $this->createExtensionHint();
        }

        if (
$isCausedByLock && !$isDevExtraction && !$request->getUpdateAllowTransitiveRootDependencies()) {
            
$hints[] = "Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.";
        }

        if (
strpos($text'found composer-plugin-api[2.0.0] but it does not match') && strpos($text'- ocramius/package-versions')) {
            
$hints[] = "<warning>ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4.</warning>\nIf you can not upgrade PHP you can require <info>composer/package-versions-deprecated</info> to resolve this with PHP 7.0+.";
        }

        if (!
class_exists('PHPUnit\Framework\TestCase'false)) {
            if (
strpos($text'found composer-plugin-api[2.0.0] but it does not match')) {
                
$hints[] = "You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.";
            }
        }

        if (
$hints) {
            
$text .= "\n" implode("\n\n"$hints);
        }

        return 
$text;
    }

    public function 
getProblems()
    {
        return 
$this->problems;
    }

    private function 
createExtensionHint()
    {
        
$paths IniHelper::getAll();

        if (
count($paths) === && empty($paths[0])) {
            return 
'';
        }

        
$text "To enable extensions, verify that they are enabled in your .ini files:\n    - ";
        
$text .= implode("\n    - "$paths);
        
$text .= "\nYou can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.";

        return 
$text;
    }

    private function 
hasExtensionProblems(array $reasonSets)
    {
        foreach (
$reasonSets as $reasonSet) {
            foreach (
$reasonSet as $rule) {
                if (
=== strpos($rule->getRequiredPackage(), 'ext-')) {
                    return 
true;
                }
            }
        }

        return 
false;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0074 ]--