php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_zlib.h File Reference
#include "php_version.h"
#include <zlib.h>

Go to the source code of this file.

Data Structures

struct  _php_zlib_buffer
 
struct  _php_zlib_context
 

Macros

#define PHP_ZLIB_VERSION   PHP_VERSION
 
#define PHP_ZLIB_ENCODING_RAW   -0xf
 
#define PHP_ZLIB_ENCODING_GZIP   0x1f
 
#define PHP_ZLIB_ENCODING_DEFLATE   0x0f
 
#define PHP_ZLIB_ENCODING_ANY   0x2f
 
#define PHP_ZLIB_OUTPUT_HANDLER_NAME   "zlib output compression"
 
#define PHP_ZLIB_BUFFER_SIZE_GUESS(in_len)
 
#define ZLIBG(v)
 
#define zlib_module_ptr   &php_zlib_module_entry
 
#define phpext_zlib_ptr   zlib_module_ptr
 

Typedefs

typedef struct _php_zlib_buffer php_zlib_buffer
 
typedef struct _php_zlib_context php_zlib_context
 

Functions

 ZEND_END_MODULE_GLOBALS (zlib)
 
php_streamphp_stream_gzopen (php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
 

Variables

zend_long output_compression
 
zend_long output_compression_level
 
char * output_handler
 
php_zlib_contextob_gzhandler
 
zend_long output_compression_default
 
bool handler_registered
 
int compression_coding
 
const php_stream_ops php_stream_gzio_ops
 
const php_stream_wrapper php_stream_gzip_wrapper
 
const php_stream_filter_factory php_zlib_filter_factory
 
zend_module_entry php_zlib_module_entry
 

Macro Definition Documentation

◆ PHP_ZLIB_BUFFER_SIZE_GUESS

#define PHP_ZLIB_BUFFER_SIZE_GUESS ( in_len)
Value:
(((size_t) ((double) in_len * (double) 1.015)) + 10 + 8 + 4 + 1)

Definition at line 34 of file php_zlib.h.

◆ PHP_ZLIB_ENCODING_ANY

#define PHP_ZLIB_ENCODING_ANY   0x2f

Definition at line 31 of file php_zlib.h.

◆ PHP_ZLIB_ENCODING_DEFLATE

#define PHP_ZLIB_ENCODING_DEFLATE   0x0f

Definition at line 29 of file php_zlib.h.

◆ PHP_ZLIB_ENCODING_GZIP

#define PHP_ZLIB_ENCODING_GZIP   0x1f

Definition at line 28 of file php_zlib.h.

◆ PHP_ZLIB_ENCODING_RAW

#define PHP_ZLIB_ENCODING_RAW   -0xf

Definition at line 27 of file php_zlib.h.

◆ PHP_ZLIB_OUTPUT_HANDLER_NAME

#define PHP_ZLIB_OUTPUT_HANDLER_NAME   "zlib output compression"

Definition at line 33 of file php_zlib.h.

◆ PHP_ZLIB_VERSION

#define PHP_ZLIB_VERSION   PHP_VERSION

Definition at line 23 of file php_zlib.h.

◆ phpext_zlib_ptr

#define phpext_zlib_ptr   zlib_module_ptr

Definition at line 72 of file php_zlib.h.

◆ zlib_module_ptr

#define zlib_module_ptr   &php_zlib_module_entry

Definition at line 71 of file php_zlib.h.

◆ ZLIBG

#define ZLIBG ( v)
Value:
uint32_t v
Definition cdf.c:1237
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v)
Definition zend_API.h:274

Definition at line 64 of file php_zlib.h.

Typedef Documentation

◆ php_zlib_buffer

◆ php_zlib_context

Function Documentation

◆ php_stream_gzopen()

php_stream * php_stream_gzopen ( php_stream_wrapper * wrapper,
const char * path,
const char * mode,
int options,
zend_string ** opened_path,
php_stream_context *context STREAMS_DC )

Definition at line 139 of file zlib_fopen_wrapper.c.

◆ ZEND_END_MODULE_GLOBALS()

ZEND_END_MODULE_GLOBALS ( zlib )

Variable Documentation

◆ compression_coding

int compression_coding

Definition at line 61 of file php_zlib.h.

◆ handler_registered

bool handler_registered

Definition at line 60 of file php_zlib.h.

◆ ob_gzhandler

php_zlib_context* ob_gzhandler

Definition at line 58 of file php_zlib.h.

◆ output_compression

zend_long output_compression

Definition at line 55 of file php_zlib.h.

◆ output_compression_default

zend_long output_compression_default

Definition at line 59 of file php_zlib.h.

◆ output_compression_level

zend_long output_compression_level

Definition at line 56 of file php_zlib.h.

◆ output_handler

char* output_handler

Definition at line 57 of file php_zlib.h.

◆ php_stream_gzio_ops

const php_stream_ops php_stream_gzio_ops
extern

Definition at line 129 of file zlib_fopen_wrapper.c.

◆ php_stream_gzip_wrapper

const php_stream_wrapper php_stream_gzip_wrapper
extern

Definition at line 210 of file zlib_fopen_wrapper.c.

◆ php_zlib_filter_factory

const php_stream_filter_factory php_zlib_filter_factory
extern

Definition at line 419 of file zlib_filter.c.

◆ php_zlib_module_entry

zend_module_entry php_zlib_module_entry
extern

Definition at line 1429 of file zlib.c.