Lines Matching refs:za
49 #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \ argument
50 if (zip_stat_index(za, index, flags, &sb) != 0) { \
57 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ argument
62 if (zip_stat(za, path, flags, &sb) != 0) { \
68 #define PHP_ZIP_SET_FILE_COMMENT(za, index, comment, comment_len) \ argument
71 if (zip_file_set_comment(za, index, NULL, 0, 0) < 0) { \
74 } else if (zip_file_set_comment(za, index, comment, comment_len, 0) < 0) { \
124 static int php_zip_extract_file(struct zip * za, char *dest, const char *file, size_t file_len, zip… in php_zip_extract_file() argument
143 idx = zip_name_locate(za, file, 0); in php_zip_extract_file()
163 if (path_cleaned_len >= MAXPATHLEN || zip_stat_index(za, idx, 0, &sb) != 0) { in php_zip_extract_file()
238 zf = zip_fopen_index(za, idx, 0); in php_zip_extract_file()
314 zs = zip_source_filep(obj->za, fd, offset_start, offset_len); in php_zip_add_file()
316 zs = zip_source_file(obj->za, resolved_path, offset_start, offset_len); in php_zip_add_file()
323 if (zip_file_replace(obj->za, replace, zs, flags) < 0) { in php_zip_add_file()
327 zip_error_clear(obj->za); in php_zip_add_file()
331 obj->last_id = zip_file_add(obj->za, entry_name, zs, flags); in php_zip_add_file()
336 zip_error_clear(obj->za); in php_zip_add_file()
469 intern = obj->za; \
510 if (obj->za) { in php_zip_status()
514 zip_error_get(obj->za, &zep, &syp); in php_zip_status()
518 err = zip_get_error(obj->za); in php_zip_status()
537 if (obj->za) { in php_zip_status_sys()
541 zip_error_get(obj->za, &zep, &syp); in php_zip_status_sys()
545 err = zip_get_error(obj->za); in php_zip_status_sys()
556 if (obj->za) { in php_zip_get_num_files()
557 zip_int64_t num = zip_get_num_entries(obj->za, 0); in php_zip_get_num_files()
576 if (obj->za) { in php_zipobj_get_zip_comment()
577 return (char *)zip_get_archive_comment(obj->za, len, 0); in php_zipobj_get_zip_comment()
1053 if (intern->za) { in php_zip_object_free_storage()
1054 if (zip_close(intern->za) != 0) { in php_zip_object_free_storage()
1055 … php_error_docref(NULL, E_WARNING, "Cannot destroy the zip context: %s", zip_strerror(intern->za)); in php_zip_object_free_storage()
1056 zip_discard(intern->za); in php_zip_object_free_storage()
1077 intern->za = NULL; in php_zip_object_free_storage()
1108 if (zip_int->za) { in php_zip_free_dir()
1109 if (zip_close(zip_int->za) != 0) { in php_zip_free_dir()
1112 zip_int->za = NULL; in php_zip_free_dir()
1202 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_FUNCTION()
1203 if (rsrc_int->za == NULL) { in PHP_FUNCTION()
1209 rsrc_int->num_files = zip_get_num_entries(rsrc_int->za, 0); in PHP_FUNCTION()
1250 if (rsrc_int && rsrc_int->za) { in PHP_FUNCTION()
1257 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_FUNCTION()
1264 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_FUNCTION()
1482 if (ze_obj->za) {
1484 if (zip_close(ze_obj->za) != 0) {
1489 ze_obj->za = NULL;
1521 ze_obj->za = intern;
1597 ze_obj->za = NULL;
1636 if (ze_obj->za) {
1637 zip_error_clear(ze_obj->za);
1662 if (ze_obj->za) {
1663 zip_error_get(ze_obj->za, &zep, &syp);
1670 if (ze_obj->za) {
1673 err = zip_get_error(ze_obj->za);
1825 if (zip_set_file_compression(ze_obj->za, ze_obj->last_id, opts.comp_method, opts.comp_flags)) {
1832 if (zip_file_set_encryption(ze_obj->za, ze_obj->last_id, opts.enc_method, opts.enc_password)) {