/php-src/ext/standard/tests/array/ |
H A D | key_variation3.phpt | 2 Test key() function : usage variations 9 echo "*** Testing key() : usage variations ***\n"; 14 var_dump(key($array1)); 24 var_dump(key($array1)); 26 var_dump(key($array2)); 29 *** Testing key() : usage variations ***
|
H A D | array_key_first.phpt | 49 First key is : 74 First key is : 91 First key is : 114 First key is : 131 First key is : 148 First key is : 165 First key is : 196 First key is : 211 First key is : 243 First key is : [all …]
|
H A D | array_key_last.phpt | 49 Last key is : 74 Last key is : 91 Last key is : 114 Last key is : 131 Last key is : 148 Last key is : 165 Last key is : 196 Last key is : 211 Last key is : 243 Last key is : [all …]
|
/php-src/ext/spl/tests/ |
H A D | iterator_011.phpt | 8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val) 10 echo "$key=>$val\n"; 18 foreach($it as $val=>$key) 20 echo "$val=>$key\n"; 29 foreach($it as $val=>$key) 31 echo "$val=>$key\n";
|
H A D | bug42654_2.phpt | 9 $key = $iterator->key(); 10 switch($key) { 13 echo "update $key".PHP_EOL; 14 $iterator->offsetSet($key, 'alter');
|
H A D | arrayObject_setIteratorClass_error1.phpt | 8 foreach($ao as $key=>$value) { 9 echo " $key=>$value\n"; 18 foreach($ao as $key=>$value) { 19 echo " $key=>$value\n"; 28 foreach($ao as $key=>$value) { 29 echo " $key=>$value\n"; 37 foreach($ao as $key=>$value) { 38 echo " $key=>$value\n";
|
H A D | SplFixedArray_override_getIterator.phpt | 11 echo "In A: key={$iterator->key()} value={$iterator->current()}\n"; 12 yield $iterator->key() => $iterator->current(); 42 In A: key=0 value=d 44 In A: key=1 value=e 46 In A: key=2 value=f
|
/php-src/ext/openssl/tests/ |
H A D | openssl_x509_check_private_key_basic.phpt | 11 $fp = fopen(__DIR__ . "/private_rsa_1024.key","r"); 16 $key = "file://" . __DIR__ . "/private_rsa_1024.key"; 18 var_dump(openssl_x509_check_private_key($cert, $key)); 19 var_dump(openssl_x509_check_private_key("", $key));
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_hash.h | 49 zend_string *key; member 70 zend_string *key, 76 zend_string *key); 80 zend_string *key); 84 zend_string *key);
|
/php-src/ext/intl/tests/ |
H A D | msgfmt_bug70484.phpt | 13 echo "$lc string key\n"; 23 echo "$lc numeric key\n"; 36 de string key 43 de numeric key 50 fr string key 57 fr numeric key 64 en string key 71 en numeric key 78 ru string key 85 ru numeric key
|
/php-src/tests/lang/ |
H A D | foreach_with_references_001.phpt | 8 foreach($arr as $key => $val) { 9 $val = $key; 14 foreach($arr as $key => &$val) { 15 $val = $key;
|
/php-src/ext/opcache/tests/jit/ |
H A D | isset_002.phpt | 10 foreach ($how as $key => $value) { 11 if (is_int($key)) { 12 if (is_int($key)) { 15 if (isset($row[$key])) { 19 if (isset($row[$key])) {
|
H A D | inc_020.phpt | 14 foreach ($row as $key => $value) { 15 if (is_int($key)) { 16 $key++; 18 if (isset($row[$key])) {
|
/php-src/Zend/tests/ |
H A D | foreach_003.phpt | 23 function key(): mixed {$this->trap(__FUNCTION__); return $this->n;} 28 foreach(['rewind', 'valid', 'key', 'current', 'next'] as $trap) { 32 foreach ($obj as $key => $val) echo "$val\n"; 40 foreach (new IT(3, $trap) as $key => $val) echo "$val\n"; 47 foreach ((object)new IT(2, $trap) as $key => $val) echo "$val\n"; 60 key 61 key 62 key
|
H A D | gh13178_1.phpt | 6 foreach ($array as $key => &$value) { 7 var_dump($key); 8 unset($array[$key]); 10 if ($key === 10) {
|
H A D | gh13178_2.phpt | 6 foreach ($array as $key => &$value) { 7 var_dump($key); 8 unset($array[$key]); 10 if ($key === 110) {
|
/php-src/ext/dba/ |
H A D | dba.stub.php | 25 function dba_exists(string|array $key, $dba): bool {} argument 31 function dba_fetch(string|array $key, $dba, $skip = 0): string|false {} argument 34 function dba_key_split(string|false|null $key): array|false {} argument 43 function dba_delete(string|array $key, $dba): bool {} argument 46 function dba_insert(string|array $key, string $value, $dba): bool {} argument 49 function dba_replace(string|array $key, string $value, $dba): bool {} argument
|
/php-src/Zend/ |
H A D | zend_weakrefs.h | 33 ZEND_API zval *zend_weakrefs_hash_add(HashTable *ht, zend_object *key, zval *pData); 34 ZEND_API zend_result zend_weakrefs_hash_del(HashTable *ht, zend_object *key); 35 static zend_always_inline void *zend_weakrefs_hash_add_ptr(HashTable *ht, zend_object *key, void *p… in zend_weakrefs_hash_add_ptr() argument 38 if ((zv = zend_weakrefs_hash_add(ht, key, &tmp))) { in zend_weakrefs_hash_add_ptr() 60 static zend_always_inline zend_object *zend_weakref_key_to_object(zend_ulong key) in zend_weakref_key_to_object() argument 62 return (zend_object *) (((uintptr_t) key) << ZEND_MM_ALIGNMENT_LOG2); in zend_weakref_key_to_object()
|
/php-src/ext/dba/tests/ |
H A D | dba_gdbm.phpt | 33 Remove key 1 and 3 36 Try to remove key 1 again 50 Replace second key data 56 Replace second key data 61 Fetch "key number 6": The 6th value 69 ["key number 6"]=> 79 Remove key 1 and 3 82 Try to remove key 1 again 96 Replace second key data 102 Replace second key data [all …]
|
H A D | dba_qdbm.phpt | 33 Remove key 1 and 3 36 Try to remove key 1 again 50 Replace second key data 56 Replace second key data 61 Fetch "key number 6": The 6th value 69 ["key number 6"]=> 79 Remove key 1 and 3 82 Try to remove key 1 again 96 Replace second key data 102 Replace second key data [all …]
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | bst_map.c | 83 const lxb_char_t *key, size_t key_len) in lexbor_bst_map_search() argument 88 size_t hash_id = lexbor_utils_hash_hash(key, key_len); in lexbor_bst_map_search() 99 lexbor_str_data_cmp(entry->str.data, key)) in lexbor_bst_map_search() 114 const lxb_char_t *key, size_t key_len, void *value) in lexbor_bst_map_insert() argument 131 const lxb_char_t *key, size_t key_len) in lexbor_bst_map_insert_not_exists() argument 136 size_t hash_id = lexbor_utils_hash_hash(key, key_len); in lexbor_bst_map_insert_not_exists() 151 lexbor_str_data_cmp(entry->str.data, key)) in lexbor_bst_map_insert_not_exists() 187 lexbor_str_append(&entry->str, bst_map->mraw, key, key_len); in lexbor_bst_map_insert_not_exists() 196 const lxb_char_t *key, size_t key_len) in lexbor_bst_map_remove() argument 201 size_t hash_id = lexbor_utils_hash_hash(key, key_len); in lexbor_bst_map_remove() [all …]
|
/php-src/ext/spl/ |
H A D | spl_array.c | 268 key->key = NULL; in get_hash_key() 274 key->key = NULL; in get_hash_key() 278 key->key = NULL; in get_hash_key() 282 key->key = NULL; in get_hash_key() 286 key->key = NULL; in get_hash_key() 290 key->key = NULL; in get_hash_key() 301 key->key = zend_long_to_str(key->h); in get_hash_key() 329 if (key.key) { in spl_array_get_dimension_ptr() 507 if (key.key) { in spl_array_write_dimension_ex() 548 if (key.key) { in spl_array_unset_dimension_ex() [all …]
|
/php-src/ext/session/ |
H A D | mod_mm.c | 48 zend_string *key; member 122 hv = ps_sd_hash(key); in ps_sd_new() 130 sd->key = zend_string_copy(key); in ps_sd_new() 169 zend_string_release(sd->key); in ps_sd_destroy() 179 hv = ps_sd_hash(key); in ps_sd_lookup() 183 if (ret->hv == hv && zend_string_equals(ret->key, key)) { in ps_sd_lookup() 207 if (!key) { in ps_mm_key_exists() 210 sd = ps_sd_lookup(data, key, 0); in ps_mm_key_exists() 353 if (key) { in PS_READ_FUNC() 386 sd = ps_sd_lookup(data, key, 1); in PS_WRITE_FUNC() [all …]
|
/php-src/tests/classes/ |
H A D | iterators_006.phpt | 9 private $key; 22 return $this->key !== NULL; 25 function key(): mixed { 26 return $this->key; 34 $this->key = key($this->array); 56 #var_dump($array->key());
|
/php-src/ext/dom/tests/ |
H A D | bug80332_2.phpt | 13 function test($list, $key) { 14 $key_formatted = match ($key) { 18 default => is_string($key) ? "'$key'" : $key, 20 …echo "list[$key_formatted] id attribute: ", $list[$key] ? $list[$key]->getAttribute('id') : '/', "…
|