Home
last modified time | relevance | path

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

12345678910>>...21

/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.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.c227 zend_long options = 0; in PHP_FUNCTION() local
233 Z_PARAM_LONG(options) in PHP_FUNCTION()
241 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
267 zend_long options = 0; in PHP_FUNCTION() local
274 Z_PARAM_LONG(options) in PHP_FUNCTION()
277 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
303 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
305 options &= ~PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
319 zend_long options = 0; in PHP_FUNCTION() local
325 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/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/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()
292 …if (options && (option_buffer = zend_hash_str_find(options, "threads", sizeof("threads")-1)) != NU… in php_password_argon2_needs_rehash()
548 zval options; in PHP_FUNCTION() local
555 array_init(&options); in PHP_FUNCTION()
574 algo->get_info(&options, hash); in PHP_FUNCTION()
588 zend_array *options = NULL; in PHP_FUNCTION() local
594 Z_PARAM_ARRAY_HT(options) in PHP_FUNCTION()
637 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/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-src/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-src/ext/standard/tests/http/request_parse_body/
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/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-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"]=>
/php-src/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
138 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
147 int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
375 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
378 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument
381 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument
601 …efine php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mo… argument
[all …]
/php-src/Zend/tests/
H A Dbug55578.phpt5 $options = array();
13 function test($options, $queryPart) {
17 var_dump(test($options, new Foo()));

Completed in 64 milliseconds

12345678910>>...21