Lines Matching refs:za
50 #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \ argument
51 if (zip_stat_index(za, index, flags, &sb) != 0) { \
58 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ argument
63 if (zip_stat(za, path, flags, &sb) != 0) { \
69 #define PHP_ZIP_SET_FILE_COMMENT(za, index, comment, comment_len) \ argument
72 if (zip_file_set_comment(za, index, NULL, 0, 0) < 0) { \
75 } else if (zip_file_set_comment(za, index, comment, comment_len, 0) < 0) { \
125 static int php_zip_extract_file(struct zip * za, char *dest, char *file, size_t file_len) in php_zip_extract_file() argument
158 if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) { in php_zip_extract_file()
233 zf = zip_fopen(za, file, 0); in php_zip_extract_file()
302 zs = zip_source_file(obj->za, resolved_path, offset_start, offset_len); in php_zip_add_file()
308 if (zip_file_replace(obj->za, replace, zs, flags) < 0) { in php_zip_add_file()
312 zip_error_clear(obj->za); in php_zip_add_file()
316 obj->last_id = zip_file_add(obj->za, entry_name, zs, flags); in php_zip_add_file()
321 zip_error_clear(obj->za); in php_zip_add_file()
454 intern = obj->za; \
495 if (obj->za) { in php_zip_status()
499 zip_error_get(obj->za, &zep, &syp); in php_zip_status()
503 err = zip_get_error(obj->za); in php_zip_status()
522 if (obj->za) { in php_zip_status_sys()
526 zip_error_get(obj->za, &zep, &syp); in php_zip_status_sys()
530 err = zip_get_error(obj->za); in php_zip_status_sys()
541 if (obj->za) { in php_zip_get_num_files()
542 zip_int64_t num = zip_get_num_entries(obj->za, 0); in php_zip_get_num_files()
561 if (obj->za) { in php_zipobj_get_zip_comment()
562 return (char *)zip_get_archive_comment(obj->za, len, 0); in php_zipobj_get_zip_comment()
1037 if (intern->za) { in php_zip_object_free_storage()
1038 if (zip_close(intern->za) != 0) { in php_zip_object_free_storage()
1039 … php_error_docref(NULL, E_WARNING, "Cannot destroy the zip context: %s", zip_strerror(intern->za)); in php_zip_object_free_storage()
1040 zip_discard(intern->za); in php_zip_object_free_storage()
1061 intern->za = NULL; in php_zip_object_free_storage()
1093 if (zip_int->za) { in php_zip_free_dir()
1094 if (zip_close(zip_int->za) != 0) { in php_zip_free_dir()
1097 zip_int->za = NULL; in php_zip_free_dir()
1181 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_FUNCTION()
1182 if (rsrc_int->za == NULL) { in PHP_FUNCTION()
1188 rsrc_int->num_files = zip_get_num_entries(rsrc_int->za, 0); in PHP_FUNCTION()
1229 if (rsrc_int && rsrc_int->za) { in PHP_FUNCTION()
1236 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_FUNCTION()
1243 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_FUNCTION()
1461 if (ze_obj->za) {
1463 if (zip_close(ze_obj->za) != 0) {
1468 ze_obj->za = NULL;
1500 ze_obj->za = intern;
1576 ze_obj->za = NULL;
1615 if (ze_obj->za) {
1616 zip_error_clear(ze_obj->za);
1641 if (ze_obj->za) {
1642 zip_error_get(ze_obj->za, &zep, &syp);
1649 if (ze_obj->za) {
1652 err = zip_get_error(ze_obj->za);
1804 if (zip_set_file_compression(ze_obj->za, ze_obj->last_id, opts.comp_method, opts.comp_flags)) {
1811 if (zip_file_set_encryption(ze_obj->za, ze_obj->last_id, opts.enc_method, opts.enc_password)) {