Lines Matching refs:opts

340 static int php_zip_parse_options(HashTable *options, zip_options *opts)  in php_zip_parse_options()  argument
346 memset(opts, 0, sizeof(zip_options)); in php_zip_parse_options()
347 opts->flags = ZIP_FL_OVERWRITE; in php_zip_parse_options()
348 opts->comp_method = -1; /* -1 to not change default */ in php_zip_parse_options()
350 opts->enc_method = -1; /* -1 to not change default */ in php_zip_parse_options()
358 opts->remove_all_path = zval_get_long(option); in php_zip_parse_options()
366 opts->comp_method = zval_get_long(option); in php_zip_parse_options()
373 opts->comp_flags = zval_get_long(option); in php_zip_parse_options()
383 opts->enc_method = zval_get_long(option); in php_zip_parse_options()
391 opts->enc_password = Z_STRVAL_P(option); in php_zip_parse_options()
412 opts->remove_path_len = Z_STRLEN_P(option); in php_zip_parse_options()
413 opts->remove_path = Z_STRVAL_P(option); in php_zip_parse_options()
432 opts->add_path_len = Z_STRLEN_P(option); in php_zip_parse_options()
433 opts->add_path = Z_STRVAL_P(option); in php_zip_parse_options()
442 opts->flags = Z_LVAL_P(option); in php_zip_parse_options()
1701 zip_options opts; local
1722 …if (options && zend_hash_num_elements(options) > 0 && (php_zip_parse_options(options, &opts) < 0))…
1746 if (opts.remove_all_path) {
1750 …} else if (opts.remove_path && !memcmp(Z_STRVAL_P(zval_file), opts.remove_path, opts.remove_path_l…
1751 if (IS_SLASH(Z_STRVAL_P(zval_file)[opts.remove_path_len])) {
1752 file_stripped = Z_STRVAL_P(zval_file) + opts.remove_path_len + 1;
1753 file_stripped_len = Z_STRLEN_P(zval_file) - opts.remove_path_len - 1;
1755 file_stripped = Z_STRVAL_P(zval_file) + opts.remove_path_len;
1756 file_stripped_len = Z_STRLEN_P(zval_file) - opts.remove_path_len;
1763 if (opts.add_path) {
1764 if ((opts.add_path_len + file_stripped_len) > MAXPATHLEN) {
1766 MAXPATHLEN - 1, (opts.add_path_len + file_stripped_len));
1770 snprintf(entry_name_buf, MAXPATHLEN, "%s%s", opts.add_path, file_stripped);
1783 entry_name, entry_name_len, 0, 0, -1, opts.flags) < 0) {
1787 if (opts.comp_method >= 0) {
1788 if (zip_set_file_compression(ze_obj->za, ze_obj->last_id, opts.comp_method, opts.comp_flags)) {
1794 if (opts.enc_method >= 0) {
1795 if (zip_file_set_encryption(ze_obj->za, ze_obj->last_id, opts.enc_method, opts.enc_password)) {