php-src/ext/bz2/bz2.stub.php

51 lines
1.1 KiB
PHP
Raw Normal View History

2019-08-15 21:11:46 +00:00
<?php
/** @generate-class-entries */
2019-08-15 21:11:46 +00:00
/**
* @param string|resource $file
* @return resource|false
*/
function bzopen($file, string $mode) {}
/** @param resource $bz */
function bzread($bz, int $length = 1024): string|false {}
2019-08-15 21:11:46 +00:00
2020-04-04 11:03:16 +00:00
/**
* @param resource $bz
* @implementation-alias fwrite
* @no-verify Uses different parameter name
2020-04-04 11:03:16 +00:00
*/
function bzwrite($bz, string $data, ?int $length = null): int|false {}
2019-08-15 21:11:46 +00:00
2020-04-04 11:03:16 +00:00
/**
* @param resource $bz
* @implementation-alias fflush
* @no-verify Uses different parameter name
2020-04-04 11:03:16 +00:00
*/
function bzflush($bz): bool {}
2019-08-15 21:11:46 +00:00
2020-04-04 11:03:16 +00:00
/**
* @param resource $bz
* @implementation-alias fclose
* @no-verify Uses different parameter name
2020-04-04 11:03:16 +00:00
*/
function bzclose($bz): bool {}
2019-08-15 21:11:46 +00:00
2020-02-18 18:59:15 +00:00
/** @param resource $bz */
function bzerrno($bz): int {}
2019-08-15 21:11:46 +00:00
2020-02-18 18:59:15 +00:00
/** @param resource $bz */
function bzerrstr($bz): string {}
2019-08-15 21:11:46 +00:00
/**
* @param resource $bz
* @return array<string, int|string>
* @refcount 1
*/
function bzerror($bz): array {}
2019-08-15 21:11:46 +00:00
function bzcompress(string $data, int $block_size = 4, int $work_factor = 0): string|int {}
2019-08-15 21:11:46 +00:00
function bzdecompress(string $data, bool $use_less_memory = false): string|int|false {}