/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | shs.c | 16 (((((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 D | shs.h | 20 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 D | array_key_exists_variation8.phpt | 98 -- $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 D | inifile.c | 130 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 D | collator_get_sort_key_variant7.phpt | 62 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 D | collator_get_sort_key_variant_icu76_1.phpt | 61 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 D | collator_get_sort_key_variant6.phpt | 61 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 D | gdcache.c | 153 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 D | bug60362.phpt | 14 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 D | bug79793.phpt | 6 $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 D | bug47859.phpt | 2 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 D | hash_hmac_basic.phpt | 9 $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 D | hash_hmac_file_basic.phpt | 28 $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 D | bug80724.phpt | 6 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 D | iterator_013.phpt | 10 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 D | mail.c | 117 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 D | reg_alloc_023.phpt | 12 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 D | dba_cdb.c | 137 # 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 D | weakrefs_006.phpt | 30 ["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 D | foreachLoop.009.phpt | 55 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 D | crypto_aead.phpt | 17 $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 D | crypto_stream_xchacha20.phpt | 10 $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 D | array_offset.phpt | 33 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 D | 001.phpt | 2 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 D | openssl_pkey_export_basic.phpt | 2 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 …]
|