1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 23:53:30 +02:00
Files
archived-php-src/ext/bz2/bz2.stub.php
Nikita Popov 9b2a3c1c4f Fix stubs for bzerr* functions
These can return false if the stream is not a bz2 stream. Also
emit a warning in this case, this should not be failing silently.
2021-11-05 11:09:20 +01:00

44 lines
940 B
PHP

<?php
/** @generate-function-entries */
/**
* @param string|resource $file
* @return resource|false
*/
function bzopen($file, string $mode) {}
/** @param resource $bz */
function bzread($bz, int $length = 1024): string|false {}
/**
* @param resource $bz
* @implementation-alias fwrite
*/
function bzwrite($bz, string $data, ?int $length = null): int|false {}
/**
* @param resource $bz
* @implementation-alias fflush
*/
function bzflush($bz): bool {}
/**
* @param resource $bz
* @implementation-alias fclose
*/
function bzclose($bz): bool {}
/** @param resource $bz */
function bzerrno($bz): int|false {}
/** @param resource $bz */
function bzerrstr($bz): string|false {}
/** @param resource $bz */
function bzerror($bz): array|false {}
function bzcompress(string $data, int $block_size = 4, int $work_factor = 0): string|int {}
function bzdecompress(string $data, bool $use_less_memory = false): string|int|false {}