Home
last modified time | relevance | path

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

12345678910>>...19

/PHP-8.2/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.2/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()
164 php_json_pretty_print_char(buf, options, '\n'); in php_json_encode_array()
176 php_json_pretty_print_char(buf, options, ' '); in php_json_encode_array()
331 if (options & PHP_JSON_NUMERIC_CHECK) { in php_json_escape_string()
341 php_json_encode_double(buf, d, options); in php_json_escape_string()
438 if (options & PHP_JSON_HEX_QUOT) { in php_json_escape_string()
478 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
486 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
494 if (options & PHP_JSON_HEX_AMP) { in php_json_escape_string()
[all …]
H A Djson.c183 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in php_json_decode_ex()
202 zend_long options = 0; in PHP_FUNCTION() local
208 Z_PARAM_LONG(options) in PHP_FUNCTION()
214 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION()
216 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
242 zend_long options = 0; in PHP_FUNCTION() local
249 Z_PARAM_LONG(options) in PHP_FUNCTION()
252 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
257 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
278 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
[all …]
/PHP-8.2/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' => [
H A D055.phpt9 array("01-23-45-67-89-ab", array("options" => array("separator" => "-"))),
10 array("01-23-45-67-89-ab", array("options" => array("separator" => "."))),
11 array("01-23-45-67-89-ab", array("options" => array("separator" => ":"))),
20 array("01-23-45-67-89-ab", array("options" => array("separator" => "--"))),
21 array("01-23-45-67-89-ab", array("options" => array("separator" => ""))),
/PHP-8.2/ext/mysqlnd/
H A Dmysqlnd_vio.c365 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
383 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
521 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
528 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
532 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
538 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
641 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
643 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
645 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
649 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
[all …]
/PHP-8.2/ext/standard/
H A Dpassword.c106 if (options && zend_hash_str_exists(options, "salt", sizeof("salt") - 1)) { in php_password_get_salt()
146 if (options && (znew_cost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_needs_rehash()
188 if (options && (zcost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_hash()
291 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_needs_rehash()
559 zval options; in PHP_FUNCTION() local
566 array_init(&options); in PHP_FUNCTION()
585 algo->get_info(&options, hash); in PHP_FUNCTION()
599 zend_array *options = 0; in PHP_FUNCTION() local
605 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
648 zend_array *options = NULL; in PHP_FUNCTION() local
[all …]
/PHP-8.2/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.2/ext/fileinfo/
H A Dfileinfo.c41 zend_long options; member
161 zend_long options = MAGIC_NONE; in PHP_FUNCTION() local
212 finfo->options = options; in PHP_FUNCTION()
213 finfo->magic = magic_open(options); in PHP_FUNCTION()
270 zend_long options; in PHP_FUNCTION() local
279 FINFO_SET_OPTION(finfo->magic, options) in PHP_FUNCTION()
280 finfo->options = options; in PHP_FUNCTION()
292 zend_long options = 0; in _php_finfo_get_type() local
339 if (options) { in _php_finfo_get_type()
340 FINFO_SET_OPTION(magic, options) in _php_finfo_get_type()
[all …]
/PHP-8.2/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.2/ext/curl/tests/
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); ==
H A Dcurl_basic_018.phpt31 $options = array(
36 curl_setopt_array($chs[0], $options); //set the options
37 curl_setopt_array($chs[1], $options); //set the options
38 curl_setopt_array($chs[2], $options); //set the options
/PHP-8.2/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.2/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.2/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.2/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.2/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);
366 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
369 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument
372 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument
592 …efine php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mo… argument
[all …]
/PHP-8.2/Zend/tests/
H A Dbug55578.phpt5 $options = array();
13 function test($options, $queryPart) {
17 var_dump(test($options, new Foo()));
/PHP-8.2/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 38 milliseconds

12345678910>>...19