Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/PHP-8.1/ext/
H A Dext_skel.php131 global $options;
143 printf('cd %s%s%s', $options['dir'], $options['ext'], PHP_EOL);
155 $options = [
216 } else if (!$options['unix'] && !$options['windows']) {
231 return $options;
237 global $options;
331 …if (!copy($options['skel'] . $src_file, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . …
378 if (!$options['dir'] || !is_dir($options['dir'])) {
380 } else if (is_dir($options['dir'] . $options['ext'])) {
382 } else if (!mkdir($options['dir'] . $options['ext'])) {
[all …]
/PHP-8.1/ext/json/
H A Djson_encoder.c50 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_char()
60 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_indent()
157 php_json_pretty_print_char(buf, options, '\n'); in php_json_encode_array()
169 php_json_pretty_print_char(buf, options, ' '); in php_json_encode_array()
325 if (options & PHP_JSON_NUMERIC_CHECK) { in php_json_escape_string()
335 php_json_encode_double(buf, d, options); in php_json_escape_string()
432 if (options & PHP_JSON_HEX_QUOT) { in php_json_escape_string()
472 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
480 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
488 if (options & PHP_JSON_HEX_AMP) { in php_json_escape_string()
[all …]
H A Djson.c222 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in php_json_decode_ex()
241 zend_long options = 0; in PHP_FUNCTION() local
247 Z_PARAM_LONG(options) in PHP_FUNCTION()
253 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION()
255 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
285 zend_long options = 0; in PHP_FUNCTION() local
292 Z_PARAM_LONG(options) in PHP_FUNCTION()
295 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
300 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
321 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
[all …]
/PHP-8.1/ext/filter/tests/
H A Dbug51368.phpt7 $options = ['flags' => FILTER_FLAG_ALLOW_THOUSAND, 'options' => ['thousand' => ' ']];
9 filter_var('1 000', FILTER_VALIDATE_FLOAT, $options),
10 filter_var('1 234.567', FILTER_VALIDATE_FLOAT, $options)
12 $options = ['flags' => FILTER_FLAG_ALLOW_THOUSAND, 'options' => ['thousand' => '']];
15 filter_var('12345', FILTER_VALIDATE_FLOAT, $options);
H A D029.phpt13 var_dump(filter_var("data", FILTER_CALLBACK, array("options"=>"test")));
15 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>"test")));
18 filter_var("qwe", FILTER_CALLBACK, array("options"=>"no such func"));
24 filter_var("qwe", FILTER_CALLBACK, array("options"=>""));
42 var_dump(filter_var("dAtA", FILTER_CALLBACK, array("options"=>array("test_class", "test"))));
44 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>array("test_class","test"))));
50 var_dump(filter_var("data", FILTER_CALLBACK, array("options"=>"test1")));
52 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>"test1")));
59 var_dump(filter_var("data", FILTER_CALLBACK, array("options"=>"test2")));
61 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>"test2")));
[all …]
H A Dbug76366.phpt19 $args['foo']['options'] = [];
22 $options = &$args['foo']['options'];
24 #set options
25 $options['min_range'] = 1;
26 $options['max_range'] = 5;
H A D017.phpt8 var_dump(filter_var("data", FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>'/.*/'))));
9 var_dump(filter_var("data", FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>'/^b(.*)/'))));
10 var_dump(filter_var("data", FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>'/^d(.*)/'))));
11 var_dump(filter_var("data", FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>'/blah/'))));
12 var_dump(filter_var("data", FILTER_VALIDATE_REGEXP, array("options"=>array("regexp"=>'/\[/'))));
H A D060.phpt2 filter_var() - tests for the range options of filter FILTER_VALIDATE_FLOAT
26 'options' => [
38 'options' => [
49 'options' => [
/PHP-8.1/ext/mysqlnd/
H A Dmysqlnd_vio.c343 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
361 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
499 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
506 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
510 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
516 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
619 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
621 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
623 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
627 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
[all …]
/PHP-8.1/ext/standard/
H A Dpassword.c107 if (options && zend_hash_str_exists(options, "salt", sizeof("salt") - 1)) { in php_password_get_salt()
147 if (options && (znew_cost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_needs_rehash()
192 if (options && (zcost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_hash()
295 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_needs_rehash()
563 zval options; in PHP_FUNCTION() local
570 array_init(&options); in PHP_FUNCTION()
589 algo->get_info(&options, hash); in PHP_FUNCTION()
603 zend_array *options = 0; in PHP_FUNCTION() local
609 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
652 zend_array *options = NULL; in PHP_FUNCTION() local
[all …]
/PHP-8.1/ext/sodium/
H A Dsodium_pwhash.c41 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument
46 if (!options) { in get_options()
49 if ((opt = zend_hash_str_find(options, "memory_cost", strlen("memory_cost")))) { in get_options()
58 if ((opt = zend_hash_str_find(options, "time_cost", strlen("time_cost")))) { in get_options()
81 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_hash()
105 static bool php_sodium_argon2_needs_rehash(const zend_string *hash, zend_array *options) { in php_sodium_argon2_needs_rehash() argument
108 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_needs_rehash()
145 static zend_string *php_sodium_argon2i_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2i_hash() argument
146 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2I13); in php_sodium_argon2i_hash()
160 static zend_string *php_sodium_argon2id_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2id_hash() argument
[all …]
/PHP-8.1/ext/curl/tests/
H A Dcurl_basic_018.phpt24 $options = array(
29 curl_setopt_array($chs[0], $options); //set the options
30 curl_setopt_array($chs[1], $options); //set the options
31 curl_setopt_array($chs[2], $options); //set the options
H A Dcurl_setopt_array_basic.phpt2 curl_setopt_array() function - tests setting multiple cURL options with curl_setopt_array()
11 * Description: Sets multiple options for a cURL session.
31 echo '== Starting test curl_setopt_array($ch, $options); ==' . "\n";
36 // options for the curl handler
37 $options = array (
44 curl_setopt_array($ch, $options);
53 == Starting test curl_setopt_array($ch, $options); ==
/PHP-8.1/ext/fileinfo/
H A Dfileinfo.c41 zend_long options; member
98 #define FINFO_SET_OPTION(magic, options) \ argument
179 zend_long options = MAGIC_NONE; in PHP_FUNCTION() local
230 finfo->options = options; in PHP_FUNCTION()
231 finfo->magic = magic_open(options); in PHP_FUNCTION()
288 zend_long options; in PHP_FUNCTION() local
298 finfo->options = options; in PHP_FUNCTION()
310 zend_long options = 0; in _php_finfo_get_type() local
357 if (options) { in _php_finfo_get_type()
358 FINFO_SET_OPTION(magic, options) in _php_finfo_get_type()
[all …]
/PHP-8.1/ext/phar/
H A Ddirstream.c300 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
301 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
319 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
329 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_dir()
361 return php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
424 if ((resource = phar_parse_url(wrapper, url_from, "w", options)) == NULL) { in phar_wrapper_mkdir()
431 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url_from); in phar_wrapper_mkdir()
559 if ((resource = phar_parse_url(wrapper, url, "w", options)) == NULL) { in phar_wrapper_rmdir()
566 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir()
606 php_stream_wrapper_log_error(wrapper, options, "phar error: Directory not empty"); in phar_wrapper_rmdir()
[all …]
H A Ddirstream.h21 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mode, int options, ph…
22 int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_contex…
25 …* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options);
34 …dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **op…
/PHP-8.1/ext/filter/
H A Dfilter.stub.php7 function filter_input(int $type, string $var_name, int $filter = FILTER_DEFAULT, array|int $options argument
9 function filter_var(mixed $value, int $filter = FILTER_DEFAULT, array|int $options = 0): mixed {} argument
12 function filter_input_array(int $type, array|int $options = FILTER_DEFAULT, bool $add_empty = true)… argument
15 function filter_var_array(array $array, array|int $options = FILTER_DEFAULT, bool $add_empty = true… argument
/PHP-8.1/ext/zip/tests/
H A Doo_addglob.phpt28 $options = array('add_path' => 'baz/', 'remove_all_path' => TRUE);
29 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
32 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
35 $options['flags'] = 0; // clean FL_OVERWRITE
36 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
39 $options['flags'] = ZipArchive::FL_OVERWRITE;
40 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
H A Doo_addpattern.phpt26 $options = array('add_path' => 'baz/', 'remove_path' => $dir);
27 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
30 $options['flags'] = 0; // clean FL_OVERWRITE
31 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
34 $options['flags'] = ZipArchive::FL_OVERWRITE;
35 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
/PHP-8.1/ext/simplexml/tests/
H A Dbug42259.phpt14 <options>
18 </options>
40 4 steps: xml/fieldset2/options/option1
41 4 steps: xml/fieldset2/options/option2
42 4 steps: xml/fieldset2/options/option3
/PHP-8.1/ext/hash/tests/
H A Dmurmurhash3_seed.phpt6 $ctx = hash_init("murmur3f", options: ["seed" => 42]);
16 $h0 = hash("murmur3f", "Two hashes meet in a bar.", options: ["seed" => 42]);
19 $ctx = hash_init("murmur3c", options: ["seed" => 106]);
29 $h0 = hash("murmur3c", "Two hashes meet in a bar.", options: ["seed" => 106]);
32 $ctx = hash_init("murmur3a", options: ["seed" => 2345]);
42 $h0 = hash("murmur3a", "Two hashes meet in a bar.", options: ["seed" => 2345]);
/PHP-8.1/ext/standard/tests/streams/
H A Dstream_context_get_params_001.phpt28 ["options"]=>
34 ["options"]=>
47 ["options"]=>
65 ["options"]=>
82 ["options"]=>
106 ["options"]=>
/PHP-8.1/main/
H A Dphp_streams.h64 …hp_stream_fopen_rel(filename, mode, opened, options) _php_stream_fopen((filename), (mode), (opened… argument
66 …_rel(filename, mode, path, opened, options) _php_stream_fopen_with_path((filename), (mode), (path)… argument
77 …e php_stream_open_wrapper_rel(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mo… argument
78 …ream_open_wrapper_ex_rel(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path),… argument
133 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
142 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
361 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
364 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument
367 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument
587 …efine php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mo… argument
[all …]
/PHP-8.1/Zend/tests/
H A Dbug55578.phpt5 $options = array();
13 function test($options, $queryPart) {
17 var_dump(test($options, new Foo()));
/PHP-8.1/sapi/cli/tests/
H A Dghsa-4w77-75f9-2c8w.phpt19 $options = [
26 $context = stream_context_create($options);
30 $options = [
35 $context = stream_context_create($options);

Completed in 44 milliseconds

12345678910>>...19