Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 1250) sorted by relevance

12345678910>>...50

/php-src/ext/dom/lexbor/lexbor/core/
H A Dshs.c16 (((((key[0] * key[size - 1]) * key[0]) + size) % table_size) + 0x01)
35 const lxb_char_t *key, size_t key_len) in lexbor_shs_entry_get_static() argument
38 entry = root + lexbor_shs_make_id_m(key, key_len, root->key_len); in lexbor_shs_entry_get_static()
40 while (entry->key != NULL) in lexbor_shs_entry_get_static()
43 if (lexbor_str_data_ncmp((const lxb_char_t *) entry->key, in lexbor_shs_entry_get_static()
44 key, key_len)) in lexbor_shs_entry_get_static()
64 const lxb_char_t *key, size_t key_len) in lexbor_shs_entry_get_lower_static() argument
69 while (entry->key != NULL) in lexbor_shs_entry_get_lower_static()
73 key, key_len)) in lexbor_shs_entry_get_lower_static()
98 while (entry->key != NULL) in lexbor_shs_entry_get_upper_static()
[all …]
H A Dshs.h20 char *key; member
29 uint32_t key; member
39 const lxb_char_t *key, size_t size);
43 const lxb_char_t *key, size_t key_len);
47 const lxb_char_t *key, size_t key_len);
54 const size_t table_size, const uint32_t key) in lexbor_shs_hash_get_static() argument
58 entry = &table[ (key % table_size) + 1 ]; in lexbor_shs_hash_get_static()
61 if (entry->key == key) { in lexbor_shs_hash_get_static()
/php-src/ext/standard/tests/array/
H A Darray_key_exists_variation8.phpt98 -- $key arguments are int data:
123 -- $key arguments are unset data:
127 -- $key arguments are int data:
156 -- $key arguments are int data:
185 -- $key arguments are int data:
214 -- $key arguments are int data:
243 -- $key arguments are int data:
272 -- $key arguments are int data:
301 -- $key arguments are int data:
330 -- $key arguments are int data:
[all …]
/php-src/ext/dba/libinifile/
H A Dinifile.c130 if (key->group && *key->group) { in inifile_key_string()
132 spprintf(&result, 0, "[%s]%s", key->group, key->name ? key->name : ""); in inifile_key_string()
246 …if (skip == -1 && dba->next.key.group && dba->next.key.name && !inifile_key_cmp(&dba->next.key, ke… in inifile_fetch()
260 if (!(res=inifile_key_cmp(&ln.key, key))) { in inifile_fetch()
297 ln.key.group = estrdup(dba->curr.key.group ? dba->curr.key.group : ""); in inifile_nextkey()
301 return ln.key.group || ln.key.name; in inifile_nextkey()
331 if (key->group && strlen(key->group)) { in inifile_find_group()
365 ln.key.group = estrdup(key->group); in inifile_next_group()
367 if (inifile_key_cmp(&ln.key, key) == 2) { in inifile_next_group()
418 switch(inifile_key_cmp(&ln.key, key)) { in inifile_filter()
[all …]
/php-src/ext/intl/tests/
H A Dcollator_get_sort_key_variant7.phpt62 key: 2a2c2e01070107
64 key: 2a2c3001070107
66 key: 2a2a2a01070107
68 key: 61060601060106
70 key: 610601050105
72 key: 5c01050105
74 key: 0101
76 key: 1901050105
78 key: 5a01050105
80 key: 3a01050105
[all …]
H A Dcollator_get_sort_key_variant_icu76_1.phpt61 key: 2b2d2f01070107
63 key: 2b2d3101070107
65 key: 2b2b2b01070107
67 key: 62060601060106
69 key: 620601050105
71 key: 5d01050105
73 key: 0101
75 key: 1801050105
77 key: 5b01050105
79 key: 3b01050105
[all …]
H A Dcollator_get_sort_key_variant6.phpt61 key: 292b2d01070107
63 key: 292b2f01070107
65 key: 29292901070107
67 key: 60060601060106
69 key: 600601050105
71 key: 5b01050105
73 key: 0101
75 key: 1801050105
77 key: 5901050105
79 key: 3901050105
[all …]
/php-src/ext/gd/libgd/
H A Dgdcache.c153 int key; member
159 cacheTest (void *map, void *key) in cacheTest() argument
161 return (((key_value_t *) map)->key == *(int *) key); in cacheTest()
170 map->key = *(int *) key; in cacheFetch()
187 int elem, key; in main() local
191 key = 20; in main()
193 key = 30; in main()
195 key = 40; in main()
197 key = 50; in main()
199 key = 30; in main()
[all …]
/php-src/Zend/tests/
H A Dbug60362.phpt14 echo "sub-key 1 is set: ";
17 echo "sub-key 1 is not set.\n";
22 echo "sub-key 'sub_sub' is set: ";
28 echo "sub-sub-key 0 is set: ";
42 echo "sub-key 1 is empty.\n";
44 echo "sub-key 1 is not empty: ";
64 sub-key 'non_existent' is not set.
65 sub-key 1 is set: string(1) "o"
67 sub-sub-key 'sub_sub' is not set.
70 sub-key 'non_existent' is empty.
[all …]
H A Dbug79793.phpt6 $key = "foo";
7 $key .= "bar";
8 set_error_handler(function($_, $m) use (&$key) {
10 $key .= "baz";
14 $ary[$key]++;
16 $ary[$key] += 1;
21 Undefined array key "foobar"
26 Undefined array key "foobarbaz"
/php-src/ext/standard/tests/general_functions/
H A Dbug47859.phpt2 Bug #47859 (parse_ini_file() does not like asterisk (*) in key in the beginning)
5 var_dump(parse_ini_string('*key = "*value"'));
6 var_dump(parse_ini_string('-key = "-value"'));
9 var_dump(parse_ini_string('key* = "value*"'));
10 var_dump(parse_ini_string('key.*.* = "value.*.*"'));
11 var_dump(parse_ini_string('*.*.key = "*.*.value"'));
16 ["*key"]=>
20 ["-key"]=>
28 ["key*"]=>
32 ["key.*.*"]=>
[all …]
/php-src/ext/hash/tests/
H A Dhash_hmac_basic.phpt9 $key = 'secret';
11 echo "gost: " . hash_hmac('gost', $content, $key) . "\n";
12 echo "haval128,3: " . hash_hmac('haval128,3', $content, $key) . "\n";
13 echo "md2: " . hash_hmac('md2', $content, $key) . "\n";
14 echo "md4: " . hash_hmac('md4', $content, $key) . "\n";
15 echo "md5: " . hash_hmac('md5', $content, $key) . "\n";
20 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n";
21 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n";
22 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n";
23 echo "sha512: " . hash_hmac('sha512', $content, $key) . "\n";
[all …]
H A Dhash_hmac_file_basic.phpt28 $key = 'secret';
31 echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n";
33 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n";
34 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n";
35 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n";
36 echo "ripemd128: " . hash_hmac_file('ripemd128', $file, $key) . "\n";
40 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n";
41 echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n";
42 echo "sha384: " . hash_hmac_file('sha384', $file, $key) . "\n";
43 echo "sha512: " . hash_hmac_file('sha512', $file, $key) . "\n";
[all …]
/php-src/ext/spl/tests/
H A Dbug80724.phpt6 foreach ($iterator as $key => $value) {
7 echo var_dump(hasSeparator($key));
11 echo var_dump(hasSeparator($iterator->key()));
14 echo var_dump(hasSeparator($iterator->key()));
17 echo var_dump(hasSeparator($iterator->key()));
20 foreach ($iterator2 as $key => $value) {
21 echo var_dump(hasSeparator($key));
25 echo var_dump(hasSeparator($iterator2->key()));
28 echo var_dump(hasSeparator($iterator2->key()));
31 echo var_dump(hasSeparator($iterator2->key()));
[all …]
H A Diterator_013.phpt10 foreach($it as $key=>$val)
12 echo "$key=>$val\n";
19 foreach($it as $key=>$val)
21 echo "$key=>$val\n";
26 foreach($it as $key=>$val)
28 echo "$key=>$val\n";
35 foreach(new NoRewindIterator($it) as $key=>$val)
37 echo "$key=>$val\n";
42 foreach($it as $key=>$val)
44 echo "$key=>$val\n";
/php-src/ext/standard/
H A Dmail.c117 while (len < key->len) { in php_mail_build_headers_check_field_name()
118 if (*(key->val+len) < 33 || *(key->val+len) > 126 || *(key->val+len) == ':') { in php_mail_build_headers_check_field_name()
159 smart_str_append(s, key); in php_mail_build_headers_elem()
165 php_mail_build_headers_elems(s, key, val); in php_mail_build_headers_elem()
188 php_mail_build_headers_elem(s, key, tmp_val); in php_mail_build_headers_elems()
195 php_mail_build_headers_elem(&s, key, val); \
201 php_mail_build_headers_elems(&s, key, val); \
210 zend_string *key; in php_mail_build_headers() local
215 if (!key) { in php_mail_build_headers()
245 php_mail_build_headers_elem(&s, key, val); in php_mail_build_headers()
[all …]
/php-src/ext/opcache/tests/jit/
H A Dreg_alloc_023.phpt12 if (isset($this->a[$key])) {
13 foreach ($this->a[$key] as $i => $data) {
16 unset($this->a[$key][$i]);
21 if (isset($this->type_map[$key])) {
22 foreach ($this->b[$key] as $map_start => $_) {
24 unset($this->b[$key][$map_start]);
28 if (isset($this->c[$key])) {
29 foreach ($this->c[$key] as $map_start => $_) {
31 unset($this->c[$key][$map_start]);
35 if (isset($this->d[$key])) {
[all …]
/php-src/ext/dba/
H A Ddba_cdb.c137 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
138 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
141 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
142 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
155 if (php_cdb_find(&cdb->c, ZSTR_VAL(key), ZSTR_LEN(key)) == 1) { in DBA_FETCH_FUNC()
197 if (php_cdb_find(&cdb->c, ZSTR_VAL(key), ZSTR_LEN(key)) == 1) in DBA_EXISTS_FUNC()
244 zend_string *key; in DBA_FIRSTKEY_FUNC() local
268 key = NULL; in DBA_FIRSTKEY_FUNC()
276 return key; in DBA_FIRSTKEY_FUNC()
299 key = NULL; in DBA_NEXTKEY_FUNC()
[all …]
/php-src/Zend/tests/weakrefs/
H A Dweakrefs_006.phpt30 ["key"]=>
38 ["key"]=>
46 ["key"]=>
54 ["key"]=>
62 ["key"]=>
70 ["key"]=>
78 ["key"]=>
86 ["key"]=>
94 ["key"]=>
102 ["key"]=>
[all …]
/php-src/tests/lang/
H A DforeachLoop.009.phpt55 key: 0; value: original.0
56 key: 1; value: original.1
57 key: 2; value: original.2
60 key: 0; value: original.0
61 key: 1; value: original.1
64 key: 0; value: original.0
65 key: 1; value: original.1
72 key: 3; value: new.0
73 key: 4; value: new.1
74 key: 5; value: new.2
[all …]
/php-src/ext/sodium/tests/
H A Dcrypto_aead.phpt17 $key = sodium_crypto_aead_chacha20poly1305_keygen();
20 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key);
21 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $nonce, $key);
40 $key = sodium_crypto_aead_chacha20poly1305_ietf_keygen();
69 $key = sodium_crypto_aead_xchacha20poly1305_ietf_keygen();
97 $key = sodium_crypto_aead_aes256gcm_keygen();
98 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key);
123 $key = sodium_crypto_aead_aegis128l_keygen();
124 $ciphertext = sodium_crypto_aead_aegis128l_encrypt($msg, $ad, $nonce, $key);
149 $key = sodium_crypto_aead_aegis256_keygen();
[all …]
H A Dcrypto_stream_xchacha20.phpt10 $key = sodium_crypto_stream_xchacha20_keygen();
13 $stream = sodium_crypto_stream_xchacha20($len, $nonce, $key);
16 $stream2 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
19 $stream3 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
21 $key = sodium_crypto_stream_keygen();
22 $stream4 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
31 $stream5 = sodium_crypto_stream_xchacha20_xor($stream, $nonce, $key);
33 $stream6 = sodium_crypto_stream_xchacha20_xor($stream5, $nonce, $key);
54 sodium_crypto_stream_xchacha20(-1, $nonce, $key);
59 sodium_crypto_stream_xchacha20($len, substr($nonce, 1), $key);
[all …]
/php-src/Zend/tests/numeric_strings/
H A Darray_offset.phpt33 Warning: Undefined array key "7.5" in %s on line %d
36 Warning: Undefined array key " 7" in %s on line %d
39 Warning: Undefined array key " 7.5" in %s on line %d
42 Warning: Undefined array key " 7 " in %s on line %d
48 Warning: Undefined array key "7 " in %s on line %d
51 Warning: Undefined array key "7.5 " in %s on line %d
54 Warning: Undefined array key "7str" in %s on line %d
57 Warning: Undefined array key "7.5str" in %s on line %d
78 Warning: Undefined array key "0xA" in %s on line %d
81 Warning: Undefined array key "0b10" in %s on line %d
[all …]
/php-src/ext/openssl/tests/
H A D001.phpt2 OpenSSL private key functions
11 echo "Creating private key\n";
17 die("failed to create private key");
21 $key_file_name = __DIR__ . '/001-tmp.key';
26 echo "Export key to file\n";
43 echo "Load key using direct syntax\n";
72 Creating private key
73 Export key to file
75 Load key from file - array syntax
78 Load key using direct syntax
[all …]
H A Dopenssl_pkey_export_basic.phpt2 openssl_pkey_export() with EC key
12 $key = openssl_pkey_get_private('file://' . __DIR__ . '/private_ec.key');
13 var_dump($key);
17 var_dump(openssl_pkey_export($key, $output, NULL, $config_arg));
20 // Load the private key from the exported pem string
24 // Export key with passphrase
25 openssl_pkey_export($key, $output, 'passphrase', $config_arg);
30 // Read public key
31 $pKey = openssl_pkey_get_public('file://' . __DIR__ . '/public_ec.key');
33 // The details are the same for a public or private key, expect the private key parameter 'd
[all …]

Completed in 35 milliseconds

12345678910>>...50