[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: bzip2.php
<?php namespace Safe; use Safe\Exceptions\Bzip2Exception; /** * Closes the given bzip2 file pointer. * * @param resource $bz The file pointer. It must be valid and must point to a file * successfully opened by bzopen. * @throws Bzip2Exception * */ function bzclose($bz): void { error_clear_last(); $result = \bzclose($bz); if ($result === false) { throw Bzip2Exception::createFromPhpError(); } } /** * Forces a write of all buffered bzip2 data for the file pointer * bz. * * @param resource $bz The file pointer. It must be valid and must point to a file * successfully opened by bzopen. * @throws Bzip2Exception * */ function bzflush($bz): void { error_clear_last(); $result = \bzflush($bz); if ($result === false) { throw Bzip2Exception::createFromPhpError(); } } /** * bzread reads from the given bzip2 file pointer. * * Reading stops when length (uncompressed) bytes have * been read or EOF is reached, whichever comes first. * * @param resource $bz The file pointer. It must be valid and must point to a file * successfully opened by bzopen. * @param int $length If not specified, bzread will read 1024 * (uncompressed) bytes at a time. A maximum of 8192 * uncompressed bytes will be read at a time. * @return string Returns the uncompressed data. * @throws Bzip2Exception * */ function bzread($bz, int $length = 1024): string { error_clear_last(); $result = \bzread($bz, $length); if ($result === false) { throw Bzip2Exception::createFromPhpError(); } return $result; } /** * bzwrite writes a string into the given bzip2 file * stream. * * @param resource $bz The file pointer. It must be valid and must point to a file * successfully opened by bzopen. * @param string $data The written data. * @param int $length If supplied, writing will stop after length * (uncompressed) bytes have been written or the end of * data is reached, whichever comes first. * @return int Returns the number of bytes written. * @throws Bzip2Exception * */ function bzwrite($bz, string $data, int $length = null): int { error_clear_last(); if ($length !== null) { $result = \bzwrite($bz, $data, $length); } else { $result = \bzwrite($bz, $data); } if ($result === false) { throw Bzip2Exception::createFromPhpError(); } return $result; }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.71 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002