1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/zlib/zlib.stub.php
Máté Kocsis 2c96780e1c Fix UNKNOWN default values in ext/standard
Closes GH-6026
2020-09-07 18:58:11 +02:00

117 lines
2.7 KiB
PHP

<?php
/** @generate-function-entries */
final class InflateContext
{
}
final class DeflateContext
{
}
function ob_gzhandler(string $data, int $flags): string|false {}
function zlib_get_coding_type(): string|false {}
function gzfile(string $filename, int $use_include_path = 0): array|false {}
/** @return resource|false */
function gzopen(string $filename, string $mode, int $use_include_path = 0) {}
function readgzfile(string $filename, int $use_include_path = 0): int|false {}
function zlib_encode(string $data, int $encoding, int $level = -1): string|false {}
function zlib_decode(string $data, int $max_decoded_len = 0): string|false {}
function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string|false {}
function gzencode(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_GZIP): string|false {}
function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false {}
function gzinflate(string $data, int $max_decoded_len = 0): string|false {}
function gzdecode(string $data, int $max_decoded_len = 0): string|false {}
function gzuncompress(string $data, int $max_decoded_len = 0): string|false {}
/**
* @param resource $fp
* @alias fwrite
*/
function gzwrite($fp, string $str, ?int $length = null): int|false {}
/**
* @param resource $fp
* @alias fwrite
*/
function gzputs($fp, string $str, ?int $length = null): int|false {}
/**
* @param resource $fp
* @alias rewind
*/
function gzrewind($fp): bool {}
/**
* @param resource $fp
* @alias fclose
*/
function gzclose($fp): bool {}
/**
* @param resource $fp
* @alias feof
*/
function gzeof($fp): bool {}
/**
* @param resource $fp
* @alias fgetc
*/
function gzgetc($fp): string|false {}
/**
* @param resource $fp
* @alias fpassthru
*/
function gzpassthru($fp): int {}
/**
* @param resource $fp
* @alias fseek
*/
function gzseek($fp, int $offset, int $whence = SEEK_SET): int {}
/**
* @param resource $fp
* @alias ftell
*/
function gztell($fp): int|false {}
/**
* @param resource $fp
* @alias fread
*/
function gzread($fp, int $length): string|false {}
/**
* @param resource $fp
* @alias fgets
*/
function gzgets($fp, int $length = 1024): string|false {}
function deflate_init(int $encoding, array $options = []): DeflateContext|false {}
function deflate_add(DeflateContext $context, string $add, int $flush_behavior = ZLIB_SYNC_FLUSH): string|false {}
function inflate_init(int $encoding, array $options = []): InflateContext|false {}
function inflate_add(InflateContext $context, string $encoded_data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {}
function inflate_get_status(InflateContext $context): int {}
function inflate_get_read_len(InflateContext $context): int {}