php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zlib_fopen_wrapper.c File Reference
#include "php.h"
#include "php_zlib.h"
#include "fopen_wrappers.h"
#include "main/php_network.h"

Go to the source code of this file.

Data Structures

struct  php_gz_stream_data_t
 

Macros

#define _GNU_SOURCE
 

Functions

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

const php_stream_ops php_stream_gzio_ops
 
const php_stream_wrapper php_stream_gzip_wrapper
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 19 of file zlib_fopen_wrapper.c.

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.

Variable Documentation

◆ php_stream_gzio_ops

const php_stream_ops php_stream_gzio_ops
Initial value:
= {
php_gziop_write, php_gziop_read,
php_gziop_close, php_gziop_flush,
"ZLIB",
php_gziop_seek,
NULL,
NULL,
}
#define NULL
Definition gdcache.h:45

Definition at line 129 of file zlib_fopen_wrapper.c.

◆ php_stream_gzip_wrapper

const php_stream_wrapper php_stream_gzip_wrapper
Initial value:
= {
&gzip_stream_wops,
0,
}

Definition at line 210 of file zlib_fopen_wrapper.c.