!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)

/var/www/html/main_file/vendor/aws/aws-crt-php/tests/   drwxr-xr-x
Free 13.08 GB of 57.97 GB (22.56%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     StreamTest.php (1.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
use AWS\CRT\IO\InputStream as InputStream;

require_once(
'common.inc');

final class 
InputStreamTest extends CrtTestCase {

    const 
MEM_STREAM_CONTENTS "THIS IS A TEST";

    private function 
getMemoryStream() {
        
$stream fopen("php://memory"'r+');
        
fputs($streamself::MEM_STREAM_CONTENTS);
        
rewind($stream);
        return 
$stream;
    }

    public function 
testMemoryStream() {
        
$mem_stream $this->getMemoryStream();
        
$stream = new InputStream($mem_stream);
        
$this->assertNotNull($stream"Failed to create InputStream from PHP memory stream");
        
$this->assertEquals(strlen(self::MEM_STREAM_CONTENTS), $stream->length(), "Stream length doesn't match source buffer");
        
$this->assertEquals(self::MEM_STREAM_CONTENTS$stream->read(), "Stream doesn't match source buffer");
        
$this->assertTrue($stream->eof(), "Stream is not EOF after reading");
        
$this->assertEquals(0$stream->seek(0InputStream::SEEK_BEGIN), "Unable to rewind stream");
        
$this->assertFalse($stream->eof(), "Stream is EOF after rewinding");
        
$this->assertEquals(0$stream->seek(0InputStream::SEEK_END), "Unable to seek to end of stream");
        
$this->assertTrue($stream->eof(), "Stream is not EOF after seeking to end");
        
$stream null;
    }
}

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