⚝
One Hat Cyber Team
⚝
Your IP:
192.168.31.6
Server IP:
192.168.1.11
Server:
Linux pams 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
PHP Version:
8.2.28
Buat File
|
Buat Folder
Upload File
Eksekusi
Dir :
~
/
var
/
www
/
lppm
/
vendor
/
maennchen
/
zipstream-php
/
test
/
Edit File: Tempfile.php
<?php declare(strict_types=1); namespace ZipStream\Test; trait Tempfile { protected string|null $tempfile; /** * @var resource */ protected $tempfileStream; protected function setUp(): void { [$tempfile, $tempfileStream] = $this->getTmpFileStream(); $this->tempfile = $tempfile; $this->tempfileStream = $tempfileStream; } protected function tearDown(): void { unlink($this->tempfile); if (is_resource($this->tempfileStream)) { fclose($this->tempfileStream); } $this->tempfile = null; $this->tempfileStream = null; } protected function getTmpFileStream(): array { $tmp = tempnam(sys_get_temp_dir(), 'zipstreamtest'); $stream = fopen($tmp, 'wb+'); return [$tmp, $stream]; } }
Simpan