Lines Matching refs:sb

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) { \
128 struct zip_stat sb; in php_zip_extract_file() local
163 if (path_cleaned_len >= MAXPATHLEN || zip_stat_index(za, idx, 0, &sb) != 0) { in php_zip_extract_file()
261 ut.modtime = ut.actime = sb.mtime; in php_zip_extract_file()
479 #define RETURN_SB(sb) \ argument
482 add_ascii_assoc_string(return_value, "name", (char *)(sb)->name); \
483 add_ascii_assoc_long(return_value, "index", (zend_long) (sb)->index); \
484 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
485 add_ascii_assoc_long(return_value, "size", (zend_long) (sb)->size); \
486 add_ascii_assoc_long(return_value, "mtime", (zend_long) (sb)->mtime); \
487 add_ascii_assoc_long(return_value, "comp_size", (zend_long) (sb)->comp_size); \
488 add_ascii_assoc_long(return_value, "comp_method", (zend_long) (sb)->comp_method); \
489 add_ascii_assoc_long(return_value, "encryption_method", (zend_long) (sb)->encryption_method); \
492 #define RETURN_SB(sb) \ argument
495 add_ascii_assoc_string(return_value, "name", (char *)(sb)->name); \
496 add_ascii_assoc_long(return_value, "index", (zend_long) (sb)->index); \
497 add_ascii_assoc_long(return_value, "crc", (zend_long) (sb)->crc); \
498 add_ascii_assoc_long(return_value, "size", (zend_long) (sb)->size); \
499 add_ascii_assoc_long(return_value, "mtime", (zend_long) (sb)->mtime); \
500 add_ascii_assoc_long(return_value, "comp_size", (zend_long) (sb)->comp_size); \
501 add_ascii_assoc_long(return_value, "comp_method", (zend_long) (sb)->comp_method); \
1257 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_FUNCTION()
1386 RETURN_STRING((char *)zr_rsrc->sb.name); in php_zip_entry_get_info()
1388 RETURN_LONG((zend_long) (zr_rsrc->sb.comp_size)); in php_zip_entry_get_info()
1390 RETURN_LONG((zend_long) (zr_rsrc->sb.size)); in php_zip_entry_get_info()
1392 switch (zr_rsrc->sb.comp_method) { in php_zip_entry_get_info()
1980 struct zip_stat sb; local
1989 PHP_ZIP_STAT_PATH(intern, ZSTR_VAL(name), ZSTR_LEN(name), flags, sb);
1991 RETURN_SB(&sb);
2002 struct zip_stat sb; local
2011 if (zip_stat_index(intern, index, flags, &sb) != 0) {
2014 RETURN_SB(&sb);
2198 struct zip_stat sb; local
2212 PHP_ZIP_STAT_INDEX(intern, index, 0, sb);
2261 struct zip_stat sb; local
2270 PHP_ZIP_STAT_INDEX(intern, index, 0, sb);
2326 struct zip_stat sb; local
2335 PHP_ZIP_STAT_INDEX(intern, index, 0, sb);
2450 struct zip_stat sb; local
2459 PHP_ZIP_STAT_INDEX(intern, index, 0, sb);
2617 struct zip_stat sb; local
2629 PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb);
2630 if (zip_delete(intern, sb.index)) {
2674 struct zip_stat sb; local
2689 PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb);
2691 if (zip_file_rename(intern, sb.index, (const char *)new_name, 0)) {
2729 struct zip_stat sb; local
2743 PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb);
2745 if (zip_unchange(intern, sb.index) != 0) {
2882 struct zip_stat sb; local
2901 PHP_ZIP_STAT_PATH(intern, ZSTR_VAL(filename), ZSTR_LEN(filename), flags, sb);
2909 PHP_ZIP_STAT_INDEX(intern, index, 0, sb);
2912 if (sb.size < 1) {
2917 len = sb.size;
2963 struct zip_stat sb; local
2988 PHP_ZIP_STAT_PATH(intern, ZSTR_VAL(filename), ZSTR_LEN(filename), flags, sb);
2990 PHP_ZIP_STAT_INDEX(intern, index, flags, sb);
2993 stream = php_stream_zip_open(intern, &sb, mode, flags STREAMS_CC);