Lines Matching refs:flags

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) { \
280 zip_flags_t flags in php_zip_add_file() argument
307 if (zip_file_replace(obj->za, replace, zs, flags) < 0) { in php_zip_add_file()
315 obj->last_id = zip_file_add(obj->za, entry_name, zs, flags); in php_zip_add_file()
331 zip_flags_t flags; member
347 opts->flags = ZIP_FL_OVERWRITE; in php_zip_parse_options()
442 opts->flags = Z_LVAL_P(option); in php_zip_parse_options()
604 int php_zip_glob(char *pattern, int pattern_len, zend_long flags, zval *return_value) /* {{{ */ in php_zip_glob() argument
622 if ((GLOB_AVAILABLE_FLAGS & flags) != flags) { in php_zip_glob()
647 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in php_zip_glob()
687 if (flags & GLOB_ONLYDIR) { in php_zip_glob()
1438 zend_long flags = 0; local
1444 if (zend_parse_parameters(ZEND_NUM_ARGS(), "P|l", &filename, &flags) == FAILURE) {
1481 if ((flags & (ZIP_TRUNCATE | ZIP_RDONLY)) == 0) {
1483 if ((flags & ZIP_TRUNCATE) == 0) {
1493 flags |= ZIP_TRUNCATE;
1497 intern = zip_open(resolved_path, flags, &err);
1659 zend_long flags = 0; local
1662 &dirname, &dirname_len, &flags) == FAILURE) {
1681 if ((Z_ZIP_P(self)->last_id = zip_dir_add(intern, (const char *)s, flags)) == -1) {
1783 entry_name, entry_name_len, 0, 0, -1, opts.flags) < 0) {
1829 zend_long flags = ZIP_FL_OVERWRITE; local
1832 &filename, &entry_name, &entry_name_len, &offset_start, &offset_len, &flags) == FAILURE) {
1847 entry_name, entry_name_len, offset_start, offset_len, -1, flags) < 0) {
1862 zend_long flags = 0; local
1865 &filename, &index, &offset_start, &offset_len, &flags) == FAILURE) {
1880 NULL, 0, offset_start, offset_len, index, flags) < 0) {
1899 zend_long flags = ZIP_FL_OVERWRITE; local
1902 &name, &name_len, &buffer, &flags) == FAILURE) {
1926 ze_obj->last_id = zip_file_add(intern, name, zs, flags);
1942 zend_long flags = 0; local
1946 if (zend_parse_parameters(ZEND_NUM_ARGS(), "P|l", &name, &flags) == FAILURE) {
1952 PHP_ZIP_STAT_PATH(intern, ZSTR_VAL(name), ZSTR_LEN(name), flags, sb);
1963 zend_long index, flags = 0; local
1968 &index, &flags) == FAILURE) {
1974 if (zip_stat_index(intern, index, flags, &sb) != 0) {
1986 zend_long flags = 0; local
1990 if (zend_parse_parameters(ZEND_NUM_ARGS(), "P|l", &name, &flags) == FAILURE) {
2000 idx = (zend_long)zip_name_locate(intern, (const char *)ZSTR_VAL(name), flags);
2016 zend_long flags = 0, index = 0; local
2019 &index, &flags) == FAILURE) {
2025 name = zip_get_name(intern, (int) index, flags);
2067 zend_long flags = 0; local
2071 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &flags) == FAILURE) {
2077 comment = zip_get_archive_comment(intern, &comment_len, (int)flags);
2156 zend_long flags=0, opsys, attr; local
2160 &name, &name_len, &opsys, &attr, &flags) == FAILURE) {
2176 if (zip_file_set_external_attributes(intern, idx, (zip_flags_t)flags,
2189 zend_long index, flags=0, opsys, attr; local
2193 &index, &opsys, &attr, &flags) == FAILURE) {
2201 (zip_flags_t)flags, (zip_uint8_t)(opsys&0xff), (zip_uint32_t)attr) < 0) {
2215 zend_long flags=0; local
2221 &name, &name_len, &z_opsys, &z_attr, &flags) == FAILURE) {
2238 (zip_flags_t)flags, &opsys, &attr) < 0) {
2252 zend_long index, flags=0; local
2258 &index, &z_opsys, &z_attr, &flags) == FAILURE) {
2266 (zip_flags_t)flags, &opsys, &attr) < 0) {
2343 zend_long flags = 0; local
2349 &name, &name_len, &flags) == FAILURE) {
2366 comment = zip_file_get_comment(intern, idx, &comment_len, (zip_flags_t)flags);
2376 zend_long index, flags = 0; local
2382 &index, &flags) == FAILURE) {
2389 comment = zip_file_get_comment(intern, index, &comment_len, (zip_flags_t)flags);
2462 zend_long mtime, flags = 0; local
2465 &name, &name_len, &mtime, &flags) == FAILURE) {
2483 (time_t)mtime, (zip_uint32_t)flags) != 0) {
2496 zend_long mtime, flags = 0; local
2499 &index, &mtime, &flags) == FAILURE) {
2506 (time_t)mtime, (zip_uint32_t)flags) != 0) {
2815 zend_long flags = 0; local
2824 if (zend_parse_parameters(ZEND_NUM_ARGS(), "P|ll", &filename, &len, &flags) == FAILURE) {
2830 PHP_ZIP_STAT_PATH(intern, ZSTR_VAL(filename), ZSTR_LEN(filename), flags, sb);
2832 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|ll", &index, &len, &flags) == FAILURE) {
2849 zf = zip_fopen_index(intern, index, flags);
2851 zf = zip_fopen(intern, ZSTR_VAL(filename), flags);