Home
last modified time | relevance | path

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

12345678910>>...18

/PHP-7.4/ext/
H A Dext_skel.php137 global $options;
162 $options = [
223 } else if (!$options['unix'] && !$options['windows']) {
238 return $options;
245 global $options;
304 global $options;
341 …if (!copy($options['skel'] . $src_file, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . …
389 if (!$options['dir'] || !is_dir($options['dir'])) {
391 } else if (is_dir($options['dir'] . $options['ext'])) {
393 } else if (!mkdir($options['dir'] . $options['ext'])) {
[all …]
/PHP-7.4/ext/json/
H A Djson_encoder.c37 int options, php_json_encoder *encoder);
74 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_char()
84 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_indent()
242 php_json_pretty_print_char(buf, options, '\n'); in php_json_encode_array()
271 if (options & PHP_JSON_NUMERIC_CHECK) { in php_json_escape_string()
281 php_json_encode_double(buf, d, options); in php_json_escape_string()
378 if (options & PHP_JSON_HEX_QUOT) { in php_json_escape_string()
418 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
426 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
434 if (options & PHP_JSON_HEX_AMP) { in php_json_escape_string()
[all …]
H A Djson.c48 ZEND_ARG_INFO(0, options)
56 ZEND_ARG_INFO(0, options)
253 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in php_json_decode_ex()
273 zend_long options = 0; in PHP_FUNCTION() local
279 Z_PARAM_LONG(options) in PHP_FUNCTION()
287 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
318 zend_long options = 0; in PHP_FUNCTION() local
325 Z_PARAM_LONG(options) in PHP_FUNCTION()
328 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
354 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/filter/tests/
H A D029.phpt13 var_dump(filter_var("data", FILTER_CALLBACK, array("options"=>"test")));
15 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>"test")));
16 var_dump(filter_var("qwe", FILTER_CALLBACK, array("options"=>"no such func")));
17 var_dump(filter_var("qwe", FILTER_CALLBACK, array("options"=>"")));
35 var_dump(filter_var("data", FILTER_CALLBACK, array("options"=>"test1")));
37 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>"test1")));
44 var_dump(filter_var("data", FILTER_CALLBACK, array("options"=>"test2")));
46 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>"test2")));
53 var_dump(filter_var("data", FILTER_CALLBACK, array("options"=>"test3")));
55 var_dump(filter_var("", FILTER_CALLBACK, array("options"=>"test3")));
[all …]
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' => '']];
15 var_dump(filter_var('12345', FILTER_VALIDATE_FLOAT, $options));
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' => [
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_vio.c344 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
362 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
500 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
507 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
511 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
517 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
617 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
619 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
621 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
625 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
[all …]
/PHP-7.4/ext/standard/
H A Dpassword.c129 if (!options || !(option_buffer = zend_hash_str_find(options, "salt", sizeof("salt") - 1))) { in php_password_get_salt()
223 if (options && (znew_cost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_needs_rehash()
263 if (options && (zcost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { in php_password_bcrypt_hash()
366 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_needs_rehash()
404 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_hash()
641 zval options; in PHP_FUNCTION() local
648 array_init(&options); in PHP_FUNCTION()
668 zval_dtor(&options); in PHP_FUNCTION()
683 zend_array *options = 0; in PHP_FUNCTION() local
689 Z_PARAM_ARRAY_OR_OBJECT_HT(options) in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/sodium/
H A Dsodium_pwhash.c43 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument
48 if (!options) { in get_options()
51 if ((opt = zend_hash_str_find(options, "memory_cost", strlen("memory_cost")))) { in get_options()
60 if ((opt = zend_hash_str_find(options, "time_cost", strlen("time_cost")))) { in get_options()
83 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_hash()
107 static zend_bool php_sodium_argon2_needs_rehash(const zend_string *hash, zend_array *options) { in php_sodium_argon2_needs_rehash() argument
110 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_needs_rehash()
147 static zend_string *php_sodium_argon2i_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2i_hash() argument
148 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2I13); in php_sodium_argon2i_hash()
162 static zend_string *php_sodium_argon2id_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2id_hash() argument
[all …]
/PHP-7.4/ext/fileinfo/
H A Dfileinfo.c42 zend_long options; member
113 ZEND_ARG_INFO(0, options)
123 ZEND_ARG_INFO(0, options)
127 ZEND_ARG_INFO(0, options)
133 ZEND_ARG_INFO(0, options)
341 finfo->options = options; in PHP_FUNCTION()
403 zend_long options; in PHP_FUNCTION() local
423 finfo->options = options; in PHP_FUNCTION()
435 zend_long options = 0; in _php_finfo_get_type() local
491 if (options) { in _php_finfo_get_type()
[all …]
/PHP-7.4/ext/curl/tests/
H A Dcurl_setopt_array_basic.phpt2 curl_setopt_array() function - tests setting multiple cURL options with curl_setopt_array()
11 * Prototype: bool curl_setopt_array(resource $ch, array $options)
12 * Description: Sets multiple options for a cURL session.
32 echo '== Starting test curl_setopt_array($ch, $options); ==' . "\n";
37 // options for the curl handler
38 $options = array (
45 curl_setopt_array($ch, $options);
54 == Starting test curl_setopt_array($ch, $options); ==
H A Dcurl_basic_018.phpt30 $options = array(
35 curl_setopt_array($chs[0], $options); //set the options
36 curl_setopt_array($chs[1], $options); //set the options
37 curl_setopt_array($chs[2], $options); //set the options
/PHP-7.4/ext/phar/
H A Ddirstream.c314 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
315 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
333 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
343 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_dir()
375 return php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
438 if ((resource = phar_parse_url(wrapper, url_from, "w", options)) == NULL) { in phar_wrapper_mkdir()
445 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url_from); in phar_wrapper_mkdir()
573 if ((resource = phar_parse_url(wrapper, url, "w", options)) == NULL) { in phar_wrapper_rmdir()
580 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir()
620 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-7.4/ext/standard/tests/network/
H A Dsetcookie_error.phpt16 // Arguments after options array (will not be set)
23 Warning: setcookie(): Unrecognized key 'unknown_key' found in the options array in %s
25 Warning: setcookie(): No valid options were found in the given array in %s
27 Warning: setcookie(): Numeric key found in the options array in %s
29 Warning: setcookie(): No valid options were found in the given array in %s
31 Warning: setcookie(): Unrecognized key 'foo' found in the options array in %s
33 Warning: setcookie(): Cannot pass arguments after the options array in %s
/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c382 if(!options) { in xml_element_serialize()
383 options = &default_opts; in xml_element_serialize()
391 if(options->encoding && *options->encoding) { in xml_element_serialize()
400 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
405 if(options->verbosity == xml_elem_pretty && depth > 2) { in xml_element_serialize()
444 if(options->escaping && options->escaping != xml_elem_cdata_escaping) { in xml_element_serialize()
489 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
686 if(!options) { in xml_elem_parse_buf()
687 options = &default_opts; in xml_elem_parse_buf()
698 mydata.input_options = options; in xml_elem_parse_buf()
[all …]
/PHP-7.4/ext/standard/tests/streams/
H A Dstream_context_get_params_001.phpt28 ["options"]=>
34 ["options"]=>
47 ["options"]=>
65 ["options"]=>
82 ["options"]=>
106 ["options"]=>
/PHP-7.4/ext/xmlrpc/tests/
H A Dbug45555.phpt8 $options = array ();
9 $request = xmlrpc_encode_request ("system.describeMethods", $options);
15 $options = array ('output_type' => 'xml', 'version' => 'xmlrpc');
16 xmlrpc_server_call_method ($server, $request, NULL, $options);
/PHP-7.4/Zend/tests/
H A Dbug55578.phpt5 $options = array();
13 function test($options, $queryPart) {
17 var_dump(test($options, new Foo()));
/PHP-7.4/ext/simplexml/tests/
H A Dbug42259.phpt17 <options>
21 </options>
44 4 steps: xml/fieldset2/options/option1
45 4 steps: xml/fieldset2/options/option2
46 4 steps: xml/fieldset2/options/option3
/PHP-7.4/main/
H A Dphp_streams.h66 …hp_stream_fopen_rel(filename, mode, opened, options) _php_stream_fopen((filename), (mode), (opened… argument
68 …_rel(filename, mode, path, opened, options) _php_stream_fopen_with_path((filename), (mode), (path)… argument
79 …e php_stream_open_wrapper_rel(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mo… argument
80 …ream_open_wrapper_ex_rel(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path),… argument
135 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
144 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
355 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
358 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument
361 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument
572 …efine php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mo… argument
[all …]
/PHP-7.4/ext/session/tests/
H A Dsession_set_cookie_params_variation7.phpt18 * Prototype : void session_set_cookie_params(array $options)
40 var_dump(session_set_cookie_params(["path" => "newpath/"], "arg after options array"));
49 Warning: session_set_cookie_params(): No valid keys were found in the options array in %s
52 Warning: session_set_cookie_params(): Unrecognized key 'unknown_key' found in the options array in …
54 Warning: session_set_cookie_params(): Unrecognized key 'secure_invalid' found in the options array …
56 Warning: session_set_cookie_params(): No valid keys were found in the options array in %s
68 Warning: session_set_cookie_params(): Cannot pass arguments after the options array in %s
/PHP-7.4/ext/imap/tests/
H A Dimap_fetchheader_variation3.phpt9 /* Prototype : string imap_fetchheader(resource $stream_id, int $msg_no [, int $options])
15 * Test if FT_UID is set by passing the following as $options argument to imap_fetchheader():
29 $options = array ('1', true,
33 // iterate over each element of $options array to test whether FT_UID is set
36 foreach($options as $option) {
70 Warning: imap_fetchheader(): invalid value for the options parameter in %s on line %d
75 Warning: imap_fetchheader(): invalid value for the options parameter in %s on line %d

Completed in 44 milliseconds

12345678910>>...18