Lines Matching refs:opts

356 static int php_zip_parse_options(HashTable *options, zip_options *opts)  in php_zip_parse_options()  argument
362 memset(opts, 0, sizeof(zip_options)); in php_zip_parse_options()
363 opts->flags = ZIP_FL_OVERWRITE; in php_zip_parse_options()
364 opts->comp_method = -1; /* -1 to not change default */ in php_zip_parse_options()
366 opts->enc_method = -1; /* -1 to not change default */ in php_zip_parse_options()
374 opts->remove_all_path = zval_get_long(option); in php_zip_parse_options()
382 opts->comp_method = zval_get_long(option); in php_zip_parse_options()
389 opts->comp_flags = zval_get_long(option); in php_zip_parse_options()
399 opts->enc_method = zval_get_long(option); in php_zip_parse_options()
407 opts->enc_password = Z_STRVAL_P(option); in php_zip_parse_options()
428 opts->remove_path_len = Z_STRLEN_P(option); in php_zip_parse_options()
429 opts->remove_path = Z_STRVAL_P(option); in php_zip_parse_options()
448 opts->add_path_len = Z_STRLEN_P(option); in php_zip_parse_options()
449 opts->add_path = Z_STRVAL_P(option); in php_zip_parse_options()
458 opts->flags = Z_LVAL_P(option); in php_zip_parse_options()
1738 zip_options opts; local
1759 …if (options && zend_hash_num_elements(options) > 0 && (php_zip_parse_options(options, &opts) < 0))…
1783 if (opts.remove_all_path) {
1787 …} else if (opts.remove_path && !memcmp(Z_STRVAL_P(zval_file), opts.remove_path, opts.remove_path_l…
1788 if (IS_SLASH(Z_STRVAL_P(zval_file)[opts.remove_path_len])) {
1789 file_stripped = Z_STRVAL_P(zval_file) + opts.remove_path_len + 1;
1790 file_stripped_len = Z_STRLEN_P(zval_file) - opts.remove_path_len - 1;
1792 file_stripped = Z_STRVAL_P(zval_file) + opts.remove_path_len;
1793 file_stripped_len = Z_STRLEN_P(zval_file) - opts.remove_path_len;
1800 if (opts.add_path) {
1801 if ((opts.add_path_len + file_stripped_len) > MAXPATHLEN) {
1803 MAXPATHLEN - 1, (opts.add_path_len + file_stripped_len));
1807 snprintf(entry_name_buf, MAXPATHLEN, "%s%s", opts.add_path, file_stripped);
1820 entry_name, entry_name_len, 0, 0, -1, opts.flags) < 0) {
1824 if (opts.comp_method >= 0) {
1825 if (zip_set_file_compression(ze_obj->za, ze_obj->last_id, opts.comp_method, opts.comp_flags)) {
1831 if (opts.enc_method >= 0) {
1832 if (zip_file_set_encryption(ze_obj->za, ze_obj->last_id, opts.enc_method, opts.enc_password)) {