Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 24 of 24) sorted by relevance

/php-src/main/
H A Dgetopt.c55 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *opt… in php_getopt() argument
109 if (opts[php_optidx].opt_char == '-') { in php_getopt()
112 …} else if (opts[php_optidx].opt_name && !strncmp(&argv[*optind][2], opts[php_optidx].opt_name, arg… in php_getopt()
119 arg_start += (int)strlen(opts[php_optidx].opt_name); in php_getopt()
136 if (opts[php_optidx].opt_char == '-') { in php_getopt()
148 } else if (argv[*optind][optchr] == opts[php_optidx].opt_char) { in php_getopt()
153 if (opts[php_optidx].need_param) { in php_getopt()
161 if (opts[php_optidx].need_param == 1) { in php_getopt()
165 } else if (opts[php_optidx].need_param == 1) { in php_getopt()
176 return opts[php_optidx].opt_char; in php_getopt()
[all …]
H A Dphp_getopt.h33 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *opt…
/php-src/ext/openssl/tests/
H A Dopenssl_pkcs12_export_basic.phpt18 $opts = [];
21 var_dump(openssl_pkcs12_read($output, $opts, $pass));
23 var_dump(openssl_pkcs12_read($output, $opts, $pass));
25 var_dump(openssl_pkcs12_read($output, $opts, $pass));
27 var_dump(openssl_pkcs12_read($output, $opts, $pass));
28 var_dump(count($opts)); // should be 3 certificates, priv, pub, extra optional cert
H A Dopenssl_pkcs12_export_to_file_basic.phpt20 $opts = [];
23 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
25 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
27 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
29 var_dump(openssl_pkcs12_read(file_get_contents($pkcsfile), $opts, $pass));
H A Dopenssl_password_compat2.phpt24 $opts = [
33 $hash = password_hash($pass, PASSWORD_ARGON2ID, $opts);
37 $hash = openssl_password_hash($algo, $pass, $opts);
H A Dopenssl_password.phpt19 $opts = [
26 $hash = openssl_password_hash($algo, $pass, $opts);
H A Dopenssl_password_compat.phpt24 $opts = [
37 $hash = openssl_password_hash($algo, $pass, $opts);
/php-src/ext/standard/tests/url/
H A Dget_headers_error_003.phpt9 $opts = array(
15 $context = stream_context_create($opts);
19 stream_context_set_default($opts);
/php-src/ext/intl/tests/
H A Duconverter_func_subst.phpt10 $opts = array('to_subst' => $subst);
11 $ret = UConverter::transcode("This is an ascii string", 'ascii', 'utf-8', $opts);
17 $ret = UConverter::transcode("Snowman: (\xE2\x98\x83)", 'ascii', 'utf-8', $opts);
/php-src/ext/opcache/tests/
H A Dget_configuration_matches_ini.phpt11 $opts = opcache_get_configuration()['directives'];
13 var_dump(array_diff_key($inis, $opts));
/php-src/ext/standard/
H A Dbasic_functions.c899 if ((opts[i] >= 48 && opts[i] <= 57) ||
900 (opts[i] >= 65 && opts[i] <= 90) ||
901 (opts[i] >= 97 && opts[i] <= 122)
910 while ( (*opts >= 48 && *opts <= 57) || /* 0 - 9 */
911 (*opts >= 65 && *opts <= 90) || /* A - Z */
912 (*opts >= 97 && *opts <= 122) /* a - z */
918 opts++;
921 opts++;
1006 opts += len;
1027 opts++;
[all …]
H A Dfilters.c607 int opts; member
652 int opts; in php_conv_qprint_encode_convert() local
656 opts = inst->opts; in php_conv_qprint_encode_convert()
671 if (!(opts & PHP_CONV_QPRINT_OPT_BINARY) && inst->lbchars != NULL && inst->lbchars_len > 0) { in php_conv_qprint_encode_convert()
705 if (!(opts & PHP_CONV_QPRINT_OPT_BINARY) && in php_conv_qprint_encode_convert()
764 …} else if ((!(opts & PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST) || line_ccnt < inst->line_len) && ((c… in php_conv_qprint_encode_convert()
845 inst->opts = opts; in php_conv_qprint_encode_ctor()
1202 int opts = 0; in php_conv_open() local
1224 opts |= (opt_binary ? PHP_CONV_QPRINT_OPT_BINARY : 0); in php_conv_open()
1225 opts |= (opt_force_encode_first ? PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST : 0); in php_conv_open()
[all …]
/php-src/win32/
H A Dioutil.c74 opts->attributes = 0; in php_win32_ioutil_posix_to_open_opts()
84 opts->access = FILE_GENERIC_READ; in php_win32_ioutil_posix_to_open_opts()
89 opts->access = FILE_GENERIC_WRITE; in php_win32_ioutil_posix_to_open_opts()
101 opts->access |= FILE_APPEND_DATA; in php_win32_ioutil_posix_to_open_opts()
116 opts->disposition = OPEN_EXISTING; in php_win32_ioutil_posix_to_open_opts()
119 opts->disposition = OPEN_ALWAYS; in php_win32_ioutil_posix_to_open_opts()
123 opts->disposition = CREATE_NEW; in php_win32_ioutil_posix_to_open_opts()
127 opts->disposition = TRUNCATE_EXISTING; in php_win32_ioutil_posix_to_open_opts()
130 opts->disposition = CREATE_ALWAYS; in php_win32_ioutil_posix_to_open_opts()
136 opts->attributes |= FILE_ATTRIBUTE_NORMAL; in php_win32_ioutil_posix_to_open_opts()
[all …]
H A Dioutil.h279 PW32IO BOOL php_win32_ioutil_posix_to_open_opts(int flags, mode_t mode, php_ioutil_open_opts *opts);
/php-src/ext/standard/tests/http/
H A Dbug79265.phpt17 $opts = array(
25 $context = stream_context_create($opts);
H A Dbug79265_2.phpt17 $opts = array(
24 $context = stream_context_create($opts);
/php-src/tests/basic/
H A Dbug67198.phpt26 $opts = array('http' =>
34 $context = stream_context_create($opts);
/php-src/ext/zip/
H A Dphp_zip.c362 memset(opts, 0, sizeof(zip_options)); in php_zip_parse_options()
363 opts->flags = ZIP_FL_OVERWRITE; in php_zip_parse_options()
458 opts->flags = Z_LVAL_P(option); in php_zip_parse_options()
1738 zip_options opts; local
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…
1800 if (opts.add_path) {
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) {
[all …]
/php-src/ext/sodium/tests/
H A Dphp_password_hash_argon2i.phpt22 $opts = [
30 $hash = password_hash($password, 'argon2i', $opts);
H A Dphp_password_hash_argon2id.phpt22 $opts = [
30 $hash = password_hash($password, 'argon2id', $opts);
/php-src/ext/fileinfo/libmagic/
H A Dfuncs.c658 uint32_t opts = 0; in file_replace() local
664 opts |= PCRE2_MULTILINE; in file_replace()
665 pattern = convert_libmagic_pattern((char*)pat, strlen(pat), opts); in file_replace()
/php-src/ext/opcache/jit/
H A Dzend_jit.c3406 int opts = PROT_READ | PROT_WRITE; in zend_jit_unprotect() local
3413 opts |= PROT_EXEC; in zend_jit_unprotect()
3415 if (mprotect(dasm_buf, dasm_size, opts) != 0) { in zend_jit_unprotect()
/php-src/ext/fileinfo/
H A Dlibmagic.patch2047 + uint32_t opts = 0;
2053 + opts |= PCRE2_MULTILINE;
2054 + pattern = convert_libmagic_pattern((char*)pat, strlen(pat), opts);
/php-src/build/
H A Dltmain.sh5855 opts=

Completed in 67 milliseconds