Home
last modified time | relevance | path

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

12345678910>>...22

/php-src/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-src/ext/json/
H A Djson_encoder.c60 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_char()
70 if (options & PHP_JSON_PRETTY_PRINT) { in php_json_pretty_print_indent()
185 php_json_pretty_print_char(buf, options, '\n'); in php_json_encode_array()
197 php_json_pretty_print_char(buf, options, ' '); in php_json_encode_array()
382 if (options & PHP_JSON_NUMERIC_CHECK) { in php_json_escape_string()
392 php_json_encode_double(buf, d, options); in php_json_escape_string()
489 if (options & PHP_JSON_HEX_QUOT) { in php_json_escape_string()
529 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
537 if (options & PHP_JSON_HEX_TAG) { in php_json_escape_string()
545 if (options & PHP_JSON_HEX_AMP) { in php_json_escape_string()
[all …]
H A Djson.c225 zend_long options = 0; in PHP_FUNCTION() local
231 Z_PARAM_LONG(options) in PHP_FUNCTION()
239 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
265 zend_long options = 0; in PHP_FUNCTION() local
272 Z_PARAM_LONG(options) in PHP_FUNCTION()
275 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
301 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
303 options &= ~PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
317 zend_long options = 0; in PHP_FUNCTION() local
323 Z_PARAM_LONG(options) in PHP_FUNCTION()
[all …]
/php-src/ext/dom/tests/modern/html/parser/
H A DHTMLDocument_parse_options.phpt2 Dom\HTMLDocument: loading $options check
30 foreach ($tested_options as $options) {
31 var_dump($options);
33 Dom\HTMLDocument::{$method}("x", $options);
44 Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags:…
46 Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags:…
48 Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags:…
50 Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags:…
52 Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags:…
54 Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags:…
[all …]
/php-src/ext/soap/tests/SoapClient/
H A Dmissing-options-non-wsdl-mode.phpt2 SoapClient in non WSDL mode without required options
10 echo "\$options not provided\n";
22 echo "Empty \$options array\n";
23 $options = [];
25 $client = new SoapClient(null, $options);
35 echo "\$options array only sets \"uri\" option\n";
36 $options = ['uri' => 'https://example.com'];
38 $client = new SoapClient(null, $options);
50 $options not provided
53 Empty $options array
[all …]
/php-src/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-src/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-src/ext/soap/tests/SoapServer/
H A Dmissing-options-non-wsdl-mode.phpt2 SoapServer in non WSDL mode without required options
10 echo "\$options not provided\n";
22 echo "Empty \$options array\n";
23 $options = [];
25 $client = new SoapServer(null, $options);
30 $client = new ExtendedSoapServer(null, $options);
35 echo "\$options array only sets \"uri\" option\n";
36 $options = ['uri' => 'https://example.com'];
38 $client = new SoapServer(null, $options);
43 $client = new ExtendedSoapServer(null, $options);
[all …]
/php-src/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()
189 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()
546 zval options; in PHP_FUNCTION() local
553 array_init(&options); in PHP_FUNCTION()
572 algo->get_info(&options, hash); in PHP_FUNCTION()
586 zend_array *options = NULL; in PHP_FUNCTION() local
592 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
635 zend_array *options = NULL; in PHP_FUNCTION() local
[all …]
/php-src/ext/sodium/
H A Dsodium_pwhash.c31 static inline int get_options(zend_array *options, size_t *memlimit, size_t *opslimit) { in get_options() argument
36 if (!options) { in get_options()
39 if ((opt = zend_hash_str_find(options, "memory_cost", strlen("memory_cost")))) { in get_options()
48 if ((opt = zend_hash_str_find(options, "time_cost", strlen("time_cost")))) { in get_options()
71 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_hash()
95 static bool php_sodium_argon2_needs_rehash(const zend_string *hash, zend_array *options) { in php_sodium_argon2_needs_rehash() argument
98 if (get_options(options, &memlimit, &opslimit) == FAILURE) { in php_sodium_argon2_needs_rehash()
135 static zend_string *php_sodium_argon2i_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2i_hash() argument
136 return php_sodium_argon2_hash(password, options, crypto_pwhash_ALG_ARGON2I13); in php_sodium_argon2i_hash()
150 static zend_string *php_sodium_argon2id_hash(const zend_string *password, zend_array *options) { in php_sodium_argon2id_hash() argument
[all …]
/php-src/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-src/ext/phar/
H A Ddirstream.c258 if ((resource = phar_parse_url(wrapper, path, mode, options)) == NULL) { in phar_wrapper_open_dir()
259 php_stream_wrapper_log_error(wrapper, options, "phar url \"%s\" is unknown", path); in phar_wrapper_open_dir()
277 php_stream_wrapper_log_error(wrapper, options, "phar error: not a phar url \"%s\"", path); in phar_wrapper_open_dir()
285 php_stream_wrapper_log_error(wrapper, options, "%s", error); in phar_wrapper_open_dir()
319 ret = php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
374 if ((resource = phar_parse_url(wrapper, url_from, "w", options)) == NULL) { in phar_wrapper_mkdir()
381 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url_from); in phar_wrapper_mkdir()
503 if ((resource = phar_parse_url(wrapper, url, "w", options)) == NULL) { in phar_wrapper_rmdir()
510 php_stream_wrapper_log_error(wrapper, options, "phar error: invalid url \"%s\"", url); in phar_wrapper_rmdir()
548 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…
27 …* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options);
36 …dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **op…
/php-src/ext/standard/tests/http/request_parse_body/
H A Doptions_array_references.phpt2 request_parse_body: reference in options array
5 $options = ['post_max_size' => '128M'];
6 foreach ($options as $k => &$v) {}
8 request_parse_body($options);
H A Dmultipart_options_invalid_key.phpt7 request_parse_body(options: ['foo' => 1]);
13 request_parse_body(options: [42 => 1]);
20 ValueError: Invalid key "foo" in $options argument
21 ValueError: Invalid integer key in $options argument
/php-src/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-src/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)) {
/php-src/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-src/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-src/ext/standard/tests/streams/
H A Dstream_context_get_params_001.phpt28 ["options"]=>
34 ["options"]=>
47 ["options"]=>
65 ["options"]=>
82 ["options"]=>
106 ["options"]=>

Completed in 52 milliseconds

12345678910>>...22