php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_zip.h File Reference
#include <zip.h>

Go to the source code of this file.

Data Structures

struct  _ze_zip_rsrc
 
struct  _ze_zip_read_rsrc
 
struct  _ze_zip_object
 

Macros

#define phpext_zip_ptr   &zip_module_entry
 
#define ZIP_OVERWRITE   ZIP_TRUNCATE
 
#define ZIP_LENGTH_TO_END   0
 
#define ZIP_FL_OPEN_FILE_NOW   (1u<<30)
 
#define PHP_ZIP_VERSION   "1.22.6"
 
#define LIBZIP_VERSION_STR   LIBZIP_VERSION
 
#define ZIP_OPENBASEDIR_CHECKPATH(filename)
 
#define Z_ZIP_P(zv)
 
#define LIBZIP_ATLEAST(m, n, p)
 

Typedefs

typedef struct _ze_zip_rsrc zip_rsrc
 
typedef zip_rsrczip_rsrc_ptr
 
typedef struct _ze_zip_read_rsrc zip_read_rsrc
 
typedef struct _ze_zip_object ze_zip_object
 

Functions

php_streamphp_stream_zip_opener (php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC)
 
php_streamphp_stream_zip_open (struct zip *arch, struct zip_stat *sb, const char *mode, zip_flags_t flags STREAMS_DC)
 

Variables

zend_module_entry zip_module_entry
 
const php_stream_wrapper php_stream_zip_wrapper
 

Macro Definition Documentation

◆ LIBZIP_ATLEAST

#define LIBZIP_ATLEAST ( m,
n,
p )
Value:
(((m<<16) + (n<<8) + p) <= ((LIBZIP_VERSION_MAJOR<<16) + (LIBZIP_VERSION_MINOR<<8) + LIBZIP_VERSION_MICRO))
zend_long n
Definition ffi.c:4979
p
Definition session.c:1105

Definition at line 99 of file php_zip.h.

◆ LIBZIP_VERSION_STR

#define LIBZIP_VERSION_STR   LIBZIP_VERSION

Definition at line 47 of file php_zip.h.

◆ PHP_ZIP_VERSION

#define PHP_ZIP_VERSION   "1.22.6"

Definition at line 42 of file php_zip.h.

◆ phpext_zip_ptr

#define phpext_zip_ptr   &zip_module_entry

Definition at line 22 of file php_zip.h.

◆ Z_ZIP_P

#define Z_ZIP_P ( zv)
Value:
php_zip_fetch_object(Z_OBJ_P((zv)))
zval * zv
Definition ffi.c:3975
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 92 of file php_zip.h.

◆ ZIP_FL_OPEN_FILE_NOW

#define ZIP_FL_OPEN_FILE_NOW   (1u<<30)

Definition at line 40 of file php_zip.h.

◆ ZIP_LENGTH_TO_END

#define ZIP_LENGTH_TO_END   0

Definition at line 36 of file php_zip.h.

◆ ZIP_OPENBASEDIR_CHECKPATH

#define ZIP_OPENBASEDIR_CHECKPATH ( filename)
Value:
PHPAPI int php_check_open_basedir(const char *path)

Definition at line 50 of file php_zip.h.

◆ ZIP_OVERWRITE

#define ZIP_OVERWRITE   ZIP_TRUNCATE

Definition at line 31 of file php_zip.h.

Typedef Documentation

◆ ze_zip_object

typedef struct _ze_zip_object ze_zip_object

◆ zip_read_rsrc

◆ zip_rsrc

typedef struct _ze_zip_rsrc zip_rsrc

◆ zip_rsrc_ptr

Definition at line 58 of file php_zip.h.

Function Documentation

◆ php_stream_zip_open()

php_stream * php_stream_zip_open ( struct zip * arch,
struct zip_stat * sb,
const char * mode,
zip_flags_t flags STREAMS_DC )

◆ php_stream_zip_opener()

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

Variable Documentation

◆ php_stream_zip_wrapper

const php_stream_wrapper php_stream_zip_wrapper
extern

◆ zip_module_entry

zend_module_entry zip_module_entry
extern

Definition at line 1160 of file php_zip.c.