zlib.stub.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /** @generate-class-entries */
  3. /**
  4. * @strict-properties
  5. * @not-serializable
  6. */
  7. final class InflateContext
  8. {
  9. }
  10. /**
  11. * @strict-properties
  12. * @not-serializable
  13. */
  14. final class DeflateContext
  15. {
  16. }
  17. /** @refcount 1 */
  18. function ob_gzhandler(string $data, int $flags): string|false {}
  19. /** @refcount 1 */
  20. function zlib_get_coding_type(): string|false {}
  21. /**
  22. * @return array<int, string>|false
  23. * @refcount 1
  24. */
  25. function gzfile(string $filename, int $use_include_path = 0): array|false {}
  26. /**
  27. * @return resource|false
  28. * @refcount 1
  29. */
  30. function gzopen(string $filename, string $mode, int $use_include_path = 0) {}
  31. function readgzfile(string $filename, int $use_include_path = 0): int|false {}
  32. /** @refcount 1 */
  33. function zlib_encode(string $data, int $encoding, int $level = -1): string|false {}
  34. /** @refcount 1 */
  35. function zlib_decode(string $data, int $max_length = 0): string|false {}
  36. /** @refcount 1 */
  37. function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string|false {}
  38. /** @refcount 1 */
  39. function gzencode(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_GZIP): string|false {}
  40. /** @refcount 1 */
  41. function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false {}
  42. /** @refcount 1 */
  43. function gzinflate(string $data, int $max_length = 0): string|false {}
  44. /** @refcount 1 */
  45. function gzdecode(string $data, int $max_length = 0): string|false {}
  46. /** @refcount 1 */
  47. function gzuncompress(string $data, int $max_length = 0): string|false {}
  48. /**
  49. * @param resource $stream
  50. * @alias fwrite
  51. */
  52. function gzwrite($stream, string $data, ?int $length = null): int|false {}
  53. /**
  54. * @param resource $stream
  55. * @alias fwrite
  56. */
  57. function gzputs($stream, string $data, ?int $length = null): int|false {}
  58. /**
  59. * @param resource $stream
  60. * @alias rewind
  61. */
  62. function gzrewind($stream): bool {}
  63. /**
  64. * @param resource $stream
  65. * @alias fclose
  66. */
  67. function gzclose($stream): bool {}
  68. /**
  69. * @param resource $stream
  70. * @alias feof
  71. */
  72. function gzeof($stream): bool {}
  73. /**
  74. * @param resource $stream
  75. * @alias fgetc
  76. */
  77. function gzgetc($stream): string|false {}
  78. /**
  79. * @param resource $stream
  80. * @alias fpassthru
  81. */
  82. function gzpassthru($stream): int {}
  83. /**
  84. * @param resource $stream
  85. * @alias fseek
  86. */
  87. function gzseek($stream, int $offset, int $whence = SEEK_SET): int {}
  88. /**
  89. * @param resource $stream
  90. * @alias ftell
  91. */
  92. function gztell($stream): int|false {}
  93. /**
  94. * @param resource $stream
  95. * @alias fread
  96. */
  97. function gzread($stream, int $length): string|false {}
  98. /**
  99. * @param resource $stream
  100. * @alias fgets
  101. */
  102. function gzgets($stream, ?int $length = null): string|false {}
  103. function deflate_init(int $encoding, array $options = []): DeflateContext|false {}
  104. function deflate_add(DeflateContext $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {}
  105. function inflate_init(int $encoding, array $options = []): InflateContext|false {}
  106. function inflate_add(InflateContext $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {}
  107. function inflate_get_status(InflateContext $context): int {}
  108. function inflate_get_read_len(InflateContext $context): int {}