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, char *file, size_t file_len) in php_zip_extract_file() argument
157 if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) { in php_zip_extract_file()
232 zf = zip_fopen(za, file, 0); in php_zip_extract_file()
301 zs = zip_source_file(obj->za, resolved_path, offset_start, offset_len); in php_zip_add_file()
307 if (zip_file_replace(obj->za, replace, zs, flags) < 0) { in php_zip_add_file()
311 zip_error_clear(obj->za); in php_zip_add_file()
315 obj->last_id = zip_file_add(obj->za, entry_name, zs, flags); in php_zip_add_file()
320 zip_error_clear(obj->za); in php_zip_add_file()
458 intern = obj->za; \
499 if (obj->za) { in php_zip_status()
503 zip_error_get(obj->za, &zep, &syp); in php_zip_status()
507 err = zip_get_error(obj->za); in php_zip_status()
526 if (obj->za) { in php_zip_status_sys()
530 zip_error_get(obj->za, &zep, &syp); in php_zip_status_sys()
534 err = zip_get_error(obj->za); in php_zip_status_sys()
545 if (obj->za) { in php_zip_get_num_files()
546 zip_int64_t num = zip_get_num_entries(obj->za, 0); in php_zip_get_num_files()
565 if (obj->za) { in php_zipobj_get_zip_comment()
566 return (char *)zip_get_archive_comment(obj->za, len, 0); in php_zipobj_get_zip_comment()
1041 if (intern->za) { in php_zip_object_free_storage()
1042 if (zip_close(intern->za) != 0) { in php_zip_object_free_storage()
1043 … php_error_docref(NULL, E_WARNING, "Cannot destroy the zip context: %s", zip_strerror(intern->za)); in php_zip_object_free_storage()
1044 zip_discard(intern->za); in php_zip_object_free_storage()
1065 intern->za = NULL; in php_zip_object_free_storage()
1097 if (zip_int->za) { in php_zip_free_dir()
1098 if (zip_close(zip_int->za) != 0) { in php_zip_free_dir()
1101 zip_int->za = NULL; in php_zip_free_dir()
1185 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_FUNCTION()
1186 if (rsrc_int->za == NULL) { in PHP_FUNCTION()
1192 rsrc_int->num_files = zip_get_num_entries(rsrc_int->za, 0); in PHP_FUNCTION()
1233 if (rsrc_int && rsrc_int->za) { in PHP_FUNCTION()
1240 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_FUNCTION()
1247 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_FUNCTION()
1465 if (ze_obj->za) {
1467 if (zip_close(ze_obj->za) != 0) {
1472 ze_obj->za = NULL;
1504 ze_obj->za = intern;
1580 ze_obj->za = NULL;
1625 if (ze_obj->za) {
1626 zip_error_get(ze_obj->za, &zep, &syp);
1633 if (ze_obj->za) {
1636 err = zip_get_error(ze_obj->za);
1788 if (zip_set_file_compression(ze_obj->za, ze_obj->last_id, opts.comp_method, opts.comp_flags)) {
1795 if (zip_file_set_encryption(ze_obj->za, ze_obj->last_id, opts.enc_method, opts.enc_password)) {