Lines Matching refs:za

64 #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \  argument
65 if (zip_stat_index(za, index, flags, &sb) != 0) { \
71 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ argument
76 if (zip_stat(za, path, flags, &sb) != 0) { \
82 #define PHP_ZIP_SET_FILE_COMMENT(za, index, comment, comment_len) \ argument
138 static int php_zip_extract_file(struct zip * za, char *dest, char *file, int file_len TSRMLS_DC) in php_zip_extract_file() argument
171 if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) { in php_zip_extract_file()
268 zf = zip_fopen(za, file, 0); in php_zip_extract_file()
298 static int php_zip_add_file(struct zip *za, const char *filename, size_t filename_len, in php_zip_add_file() argument
320 zs = zip_source_file(za, resolved_path, offset_start, offset_len); in php_zip_add_file()
325 cur_idx = zip_name_locate(za, (const char *)entry_name, 0); in php_zip_add_file()
329 if (za->error.str) { in php_zip_add_file()
330 _zip_error_fini(&za->error); in php_zip_add_file()
332 _zip_error_init(&za->error); in php_zip_add_file()
334 if (zip_delete(za, cur_idx) == -1) { in php_zip_add_file()
340 if (zip_add(za, entry_name, zs) == -1) { in php_zip_add_file()
418 intern = obj->za; \
440 static int php_zip_status(struct zip *za TSRMLS_DC) /* {{{ */ in php_zip_status()
444 zip_error_get(za, &zep, &syp); in php_zip_status()
449 static int php_zip_status_sys(struct zip *za TSRMLS_DC) /* {{{ */ in php_zip_status_sys()
453 zip_error_get(za, &zep, &syp); in php_zip_status_sys()
458 static int php_zip_get_num_files(struct zip *za TSRMLS_DC) /* {{{ */ in php_zip_get_num_files()
460 return zip_get_num_files(za); in php_zip_get_num_files()
478 static char * php_zipobj_get_zip_comment(struct zip *za, int *len TSRMLS_DC) /* {{{ */ in php_zipobj_get_zip_comment() argument
480 if (za) { in php_zipobj_get_zip_comment()
481 return (char *)zip_get_archive_comment(za, len, 0); in php_zipobj_get_zip_comment()
794 typedef int (*zip_read_int_t)(struct zip *za TSRMLS_DC);
795 typedef char *(*zip_read_const_char_t)(struct zip *za, int *len TSRMLS_DC);
827 if (obj && obj->za != NULL) { in php_zip_property_reader()
829 retchar = hnd->read_const_char_func(obj->za, &len TSRMLS_CC); in php_zip_property_reader()
832 retint = hnd->read_int_func(obj->za TSRMLS_CC); in php_zip_property_reader()
1068 if (intern->za) { in php_zip_object_free_storage()
1069 if (zip_close(intern->za) != 0) { in php_zip_object_free_storage()
1070 _zip_free(intern->za); in php_zip_object_free_storage()
1072 intern->za = NULL; in php_zip_object_free_storage()
1082 intern->za = NULL; in php_zip_object_free_storage()
1113 intern->za = NULL; in php_zip_object_new()
1149 if (zip_int->za) { in php_zip_free_dir()
1150 if (zip_close(zip_int->za) != 0) { in php_zip_free_dir()
1151 _zip_free(zip_int->za); in php_zip_free_dir()
1153 zip_int->za = NULL; in php_zip_free_dir()
1170 if (zr_rsrc->zf->za) { in php_zip_free_entry()
1245 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_NAMED_FUNCTION()
1246 if (rsrc_int->za == NULL) { in PHP_NAMED_FUNCTION()
1252 rsrc_int->num_files = zip_get_num_files(rsrc_int->za); in PHP_NAMED_FUNCTION()
1289 if (rsrc_int && rsrc_int->za) { in PHP_NAMED_FUNCTION()
1296 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_NAMED_FUNCTION()
1303 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_NAMED_FUNCTION()
1531 if (ze_obj->za) { in ZIPARCHIVE_METHOD()
1533 if (zip_close(ze_obj->za) != 0) { in ZIPARCHIVE_METHOD()
1534 _zip_free(ze_obj->za); in ZIPARCHIVE_METHOD()
1536 ze_obj->za = NULL; in ZIPARCHIVE_METHOD()
1549 ze_obj->za = intern; in ZIPARCHIVE_METHOD()
1577 ze_obj->za = NULL; in ZIPARCHIVE_METHOD()