Home
last modified time | relevance | path

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

12345678910>>...18

/PHP-8.0/ext/
H A Dext_skel.php131 global $options;
155 $options = [
216 } else if (!$options['unix'] && !$options['windows']) {
231 return $options;
237 global $options;
293 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.0/ext/json/
H A Djson_encoder.c35 int options, php_json_encoder *encoder);
72 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_char()
82 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_indent()
240 php_json_pretty_print_char(buf, options, '\n'); in php_json_encode_array()
269 if (options & PHP_JSON_NUMERIC_CHECK) { in php_json_escape_string()
279 php_json_encode_double(buf, d, options); in php_json_escape_string()
376 if (options & PHP_JSON_HEX_QUOT) { in php_json_escape_string()
416 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
424 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
432 if (options & PHP_JSON_HEX_AMP) { in php_json_escape_string()
[all …]
H A Djson.c208 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in php_json_decode_ex()
227 zend_long options = 0; in PHP_FUNCTION() local
233 Z_PARAM_LONG(options) in PHP_FUNCTION()
239 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION()
241 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
271 zend_long options = 0; in PHP_FUNCTION() local
278 Z_PARAM_LONG(options) in PHP_FUNCTION()
281 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
286 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
307 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
[all …]
/PHP-8.0/ext/filter/tests/
H A Dbug51368.phpt9 $options = ['flags' => FILTER_FLAG_ALLOW_THOUSAND, 'options' => ['thousand' => ' ']];
11 filter_var('1 000', FILTER_VALIDATE_FLOAT, $options),
12 filter_var('1 234.567', FILTER_VALIDATE_FLOAT, $options)
14 $options = ['flags' => FILTER_FLAG_ALLOW_THOUSAND, 'options' => ['thousand' => '']];
17 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.phpt21 $args['foo']['options'] = [];
24 $options = &$args['foo']['options'];
26 #set options
27 $options['min_range'] = 1;
28 $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 D013.phpt29 var_dump(filter_var("6", FILTER_VALIDATE_INT, array("options" => array("min_range"=>1, "max_range"=…
30 var_dump(filter_var("6", FILTER_VALIDATE_INT, array("options" => array("min_range"=>0, "max_range"=…
31 var_dump(filter_var(-1, FILTER_VALIDATE_INT, array("options" => array("min_range"=>1, "max_range"=>…
32 var_dump(filter_var(-1, FILTER_VALIDATE_INT, array("options" => array("min_range"=>-4, "max_range"=…
34 var_dump(filter_var("", FILTER_VALIDATE_INT, array("options" => array("min_range"=>-4, "max_range"=…
35 var_dump(filter_var("", FILTER_VALIDATE_INT, array("options" => array("min_range"=>2, "max_range"=>…
36 var_dump(filter_var("", FILTER_VALIDATE_INT, array("options" => array("min_range"=>-5, "max_range"=…
37 var_dump(filter_var(345, FILTER_VALIDATE_INT, array("options" => array("min_range"=>500, "max_range…
/PHP-8.0/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()
616 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
618 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
620 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
624 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
[all …]
/PHP-8.0/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 zend_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.0/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()
187 if (options && (zcost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_hash()
290 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_needs_rehash()
558 zval options; in PHP_FUNCTION() local
565 array_init(&options); in PHP_FUNCTION()
584 algo->get_info(&options, hash); in PHP_FUNCTION()
598 zend_array *options = 0; in PHP_FUNCTION() local
604 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
647 zend_array *options = NULL; in PHP_FUNCTION() local
[all …]
/PHP-8.0/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.0/ext/fileinfo/
H A Dfileinfo.c42 zend_long options; member
109 #define FINFO_SET_OPTION(magic, options) \ argument
210 zend_long options = MAGIC_NONE; in PHP_FUNCTION() local
261 finfo->options = options; in PHP_FUNCTION()
262 finfo->magic = magic_open(options); in PHP_FUNCTION()
321 zend_long options; in PHP_FUNCTION() local
341 finfo->options = options; in PHP_FUNCTION()
353 zend_long options = 0; in _php_finfo_get_type() local
409 if (options) { in _php_finfo_get_type()
410 FINFO_SET_OPTION(magic, options) in _php_finfo_get_type()
[all …]
/PHP-8.0/ext/phar/
H A Ddirstream.c302 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
303 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
321 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
331 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_dir()
363 return php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
426 if ((resource = phar_parse_url(wrapper, url_from, "w", options)) == NULL) { in phar_wrapper_mkdir()
433 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url_from); in phar_wrapper_mkdir()
561 if ((resource = phar_parse_url(wrapper, url, "w", options)) == NULL) { in phar_wrapper_rmdir()
568 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir()
608 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…
H A Dstream.h22 …* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options);
25 …url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **op…
26 …p_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_conte…
27 static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea…
/PHP-8.0/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
11 function filter_input_array(int $type, array|int $options = FILTER_DEFAULT, bool $add_empty = true)… argument
13 function filter_var_array(array $array, array|int $options = FILTER_DEFAULT, bool $add_empty = true… argument
/PHP-8.0/ext/zip/tests/
H A Doo_addglob.phpt27 $options = array('add_path' => 'baz/', 'remove_all_path' => TRUE);
28 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
31 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
34 $options['flags'] = 0; // clean FL_OVERWRITE
35 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
38 $options['flags'] = ZipArchive::FL_OVERWRITE;
39 if (!$zip->addGlob($dirname . '*.{txt,baz}', GLOB_BRACE, $options)) {
H A Doo_addpattern.phpt28 $options = array('add_path' => 'baz/', 'remove_path' => $dir);
29 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
32 $options['flags'] = 0; // clean FL_OVERWRITE
33 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
36 $options['flags'] = ZipArchive::FL_OVERWRITE;
37 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
/PHP-8.0/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.0/ext/simplexml/tests/
H A Dbug42259.phpt17 <options>
21 </options>
43 4 steps: xml/fieldset2/options/option1
44 4 steps: xml/fieldset2/options/option2
45 4 steps: xml/fieldset2/options/option3
/PHP-8.0/Zend/tests/
H A Dbug55578.phpt5 $options = array();
13 function test($options, $queryPart) {
17 var_dump(test($options, new Foo()));
/PHP-8.0/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);
357 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
360 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument
363 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument
574 …efine php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mo… argument
[all …]

Completed in 42 milliseconds

12345678910>>...18