!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/guzzlehttp/streams/tests/   drwxrwxr-x
Free 11.6 GB of 61.93 GB (18.73%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     LazyOpenStreamTest.php (1.81 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Tests\Stream;

use 
GuzzleHttp\Stream\LazyOpenStream;

class 
LazyOpenStreamTest extends \PHPUnit_Framework_TestCase
{
    private 
$fname;

    public function 
setup()
    {
        
$this->fname tempnam('/tmp''tfile');

        if (
file_exists($this->fname)) {
            
unlink($this->fname);
        }
    }

    public function 
tearDown()
    {
        if (
file_exists($this->fname)) {
            
unlink($this->fname);
        }
    }

    public function 
testOpensLazily()
    {
        
$l = new LazyOpenStream($this->fname'w+');
        
$l->write('foo');
        
$this->assertInternalType('array'$l->getMetadata());
        
$this->assertFileExists($this->fname);
        
$this->assertEquals('foo'file_get_contents($this->fname));
        
$this->assertEquals('foo', (string) $l);
    }

    public function 
testProxiesToFile()
    {
        
file_put_contents($this->fname'foo');
        
$l = new LazyOpenStream($this->fname'r');
        
$this->assertEquals('foo'$l->read(4));
        
$this->assertTrue($l->eof());
        
$this->assertEquals(3$l->tell());
        
$this->assertTrue($l->isReadable());
        
$this->assertTrue($l->isSeekable());
        
$this->assertFalse($l->isWritable());
        
$l->seek(1);
        
$this->assertEquals('oo'$l->getContents());
        
$this->assertEquals('foo', (string) $l);
        
$this->assertEquals(3$l->getSize());
        
$this->assertInternalType('array'$l->getMetadata());
        
$l->close();
    }

    public function 
testDetachesUnderlyingStream()
    {
        
file_put_contents($this->fname'foo');
        
$l = new LazyOpenStream($this->fname'r');
        
$r $l->detach();
        
$this->assertInternalType('resource'$r);
        
fseek($r0);
        
$this->assertEquals('foo'stream_get_contents($r));
        
fclose($r);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.8601 ]--