Server IP : 104.21.38.3 / Your IP : 162.158.189.32 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/lapma.in/phpMyAdmin/vendor/thecodingmachine/safe/generated/ |
Upload File : |
<?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; }