/php-src/Zend/tests/ |
H A D | bug63217.phpt | 57 foreach ($array as $key => $value) { 58 return $key; 69 $key = '123'; 71 $array[$key] = 1; 82 $key = '123'; 85 $ao[$key] = 1;
|
H A D | isset_str_offset.phpt | 29 var_dump(isset($str[$key = '-1'])); // 3 30 var_dump(isset($str[$key = '-10'])); 31 var_dump(isset($str[$key = '0'])); 32 var_dump(isset($str[$key = '1'])); 33 var_dump(isset($str[$key = '4'])); // 0 34 var_dump(isset($str[$key = '1.5'])); 35 var_dump(isset($str[$key = 'good'])); 36 var_dump(isset($str[$key = '3 and a half']));
|
/php-src/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_encoding.c | 327 unsigned int key = mbfl_name2encoding_perfect_hash((*encoding)->name, name_length); in mbfl_name2encoding_ex() local 328 if (mbfl_encoding_ptr_list[mbfl_encoding_ptr_list_after_hashing[key]] != *encoding) { in mbfl_name2encoding_ex() 329 fprintf(stderr, "mbfl_name2encoding_perfect_hash: key %u %s mismatch\n", key, (*encoding)->name); in mbfl_name2encoding_ex() 337 unsigned int key = mbfl_name2encoding_perfect_hash(name, name_len); in mbfl_name2encoding_ex() local 338 …if (key < sizeof(mbfl_encoding_ptr_list_after_hashing) / sizeof(mbfl_encoding_ptr_list_after_hashi… in mbfl_name2encoding_ex() 339 int8_t offset = mbfl_encoding_ptr_list_after_hashing[key]; in mbfl_name2encoding_ex()
|
/php-src/ext/spl/tests/ |
H A D | SplDoublyLinkedList_key.phpt | 2 SplDoublyLinkedList::key basic functionality 6 <?php var_dump((new SplDoublyLinkedList)->key()); ?>
|
H A D | iterator_023.phpt | 64 function key(): int 67 return parent::key(); 133 RecursiveArrayIteratorIterator::key 143 RecursiveArrayIteratorIterator::key 153 RecursiveArrayIteratorIterator::key 159 RecursiveArrayIteratorIterator::key 171 RecursiveArrayIteratorIterator::key 185 RecursiveArrayIteratorIterator::key
|
H A D | iterator_010.phpt | 8 foreach(new LimitIterator(new EmptyIterator(), 0, 3) as $key => $val) 10 echo "$key=>$val\n";
|
H A D | bug32394.phpt | 9 foreach($object as $key => $value) 11 $object->offsetUnset($key);
|
/php-src/tests/classes/ |
H A D | iterators_007.phpt | 12 …public function key(): mixed { if ($this->x == 2) throw new Exception(__METHOD__); return ke… 14 …(): bool { if ($this->x == 4) throw new Exception(__METHOD__); return (key($this->arr) !== NUL… 38 Caught in Test::key()
|
/php-src/TSRM/ |
H A D | tsrm_win32.c | 407 if (!addr && ptr->descriptor->shm_perm.key == key) { in shm_get() 637 if (key != IPC_PRIVATE) { in shmget() 672 if (key == IPC_PRIVATE) { in shmget() 677 if (ptr->descriptor && ptr->descriptor->shm_perm.key == key) { in shmget() 678 key = tsrm_choose_random_shm_key(key); in shmget() 685 shm = shm_get(key, NULL); in shmget() 694 shm->descriptor->shm_perm.key = key; in shmget() 715 return key; in shmget() 720 shm_pair *shm = shm_get(key, NULL); in shmat() 757 shm_pair *shm = shm_get(key, NULL); in shmctl() [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | array_walk_recursive_variation6.phpt | 12 function for_numeric($value, $key, $user_data) 16 var_dump($key); 22 function for_string($value, $key) 26 var_dump($key); 31 function for_mixed($value, $key) 35 var_dump($key); 50 // binary key
|
H A D | array_key_exists_variation5.phpt | 15 echo "\n-- Attempt to match key in sub-array --\n"; 16 // this key is in the sub-array 27 -- Attempt to match key in sub-array --
|
H A D | array_merge_variation10.phpt | 20 echo key($result) . " => " . current($result) . "\n"; 24 echo key($arr1) . " => " . current ($arr1) . "\n"; 26 echo key($arr2) . " => " . current ($arr2) . "\n"; 28 echo key($arr3) . " => " . current ($arr3) . "\n";
|
/php-src/sapi/apache2handler/ |
H A D | php_functions.c | 178 char *key, *val; in PHP_FUNCTION() local 189 APR_ARRAY_FOREACH_OPEN(arr, key, val) in PHP_FUNCTION() 191 add_assoc_string(return_value, key, val); in PHP_FUNCTION() 201 char *key, *val; in PHP_FUNCTION() local 212 APR_ARRAY_FOREACH_OPEN(arr, key, val) in PHP_FUNCTION() 214 add_assoc_string(return_value, key, val); in PHP_FUNCTION() 437 char *key, *val; in PHP_MINFO_FUNCTION() local 442 APR_ARRAY_FOREACH_OPEN(arr, key, val) in PHP_MINFO_FUNCTION() 446 php_info_print_table_row(2, key, val); in PHP_MINFO_FUNCTION() 457 APR_ARRAY_FOREACH_OPEN(arr, key, val) in PHP_MINFO_FUNCTION() [all …]
|
H A D | php_apache.h | 59 #define APR_ARRAY_FOREACH_OPEN(arr, key, val) \ argument 65 key = elts[i].key; \
|
/php-src/ext/openssl/tests/ |
H A D | bug36732.phpt | 21 $key = openssl_pkey_new(); 22 $csr = openssl_csr_new($dn, $key, $configargs); 23 $crt = openssl_csr_sign($csr, NULL, $key, 365, $configargs);
|
H A D | ecc_sm2.phpt | 23 var_dump(strlen($details["key"])); 29 $public_key = openssl_pkey_get_public($details["key"]); 32 var_dump(strlen($details["key"])); 60 var_dump(strlen($details['key'])); 62 $public_key = openssl_pkey_get_public($details["key"]); 64 var_dump(strlen($details["key"]));
|
H A D | openssl_decrypt_gcm.phpt | 18 $pt = openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA, 24 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA, 27 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA, 30 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
|
H A D | openssl_open_basic.phpt | 8 $pub_key = "file://" . __DIR__ . "/public.key"; 9 $priv_key = "file://" . __DIR__ . "/private_rsa_1024.key"; 26 Warning: openssl_open(): Unable to coerce parameter 4 into a private key in %s on line %d
|
/php-src/ext/dba/ |
H A D | dba_db3.c | 123 gkey.data = ZSTR_VAL(key); 124 gkey.size = ZSTR_LEN(key); 140 gkey.data = ZSTR_VAL(key); 141 gkey.size = ZSTR_LEN(key); 161 gkey.data = ZSTR_VAL(key); 162 gkey.size = ZSTR_LEN(key); 177 gkey.data = ZSTR_VAL(key); 178 gkey.size = ZSTR_LEN(key);
|
/php-src/ext/standard/tests/network/ |
H A D | setcookie_array_option_error.phpt | 10 // Unrecognized key and no valid keys 16 // Numeric key and no valid keys 22 // Unrecognized key 28 // Invalid path key content 34 // Invalid domain key content
|
/php-src/ext/session/tests/user_session_module/ |
H A D | session_set_save_handler_multiple.phpt | 23 function read($key): string|false { 28 function write($key, $val): bool { 31 $data[$key] = $val; 49 function validateId($key): bool { 53 function updateTimestamp($key, $data): bool {
|
/php-src/ext/standard/ |
H A D | head.c | 197 zend_string *key; in php_head_parse_cookie_options_array() local 200 ZEND_HASH_FOREACH_STR_KEY_VAL(options, key, value) { in php_head_parse_cookie_options_array() 201 if (!key) { in php_head_parse_cookie_options_array() 205 if (zend_string_equals_literal_ci(key, "expires")) { in php_head_parse_cookie_options_array() 207 } else if (zend_string_equals_literal_ci(key, "path")) { in php_head_parse_cookie_options_array() 209 } else if (zend_string_equals_literal_ci(key, "domain")) { in php_head_parse_cookie_options_array() 211 } else if (zend_string_equals_literal_ci(key, "secure")) { in php_head_parse_cookie_options_array() 213 } else if (zend_string_equals_literal_ci(key, "httponly")) { in php_head_parse_cookie_options_array() 215 } else if (zend_string_equals_literal_ci(key, "samesite")) { in php_head_parse_cookie_options_array() 218 zend_value_error("%s(): option \"%s\" is invalid", get_active_function_name(), ZSTR_VAL(key)); in php_head_parse_cookie_options_array()
|
/php-src/ext/hash/tests/ |
H A D | hash_hmac_file_error.phpt | 9 $key = 'secret'; 13 var_dump(hash_hmac_file('foo', $file, $key, TRUE)); 21 var_dump(hash_hmac_file('crc32', $file, $key, TRUE)); 29 var_dump(hash_hmac_file('md5', $file.chr(0).$file, $key, TRUE));
|
/php-src/ext/opcache/tests/jit/ |
H A D | assign_dim_012.phpt | 9 function test($key) { 11 $ao[$key] = 1 < $ao['321'] = 2;
|
/php-src/tests/lang/ |
H A D | foreachLoop.017.phpt | 6 foreach ($a as $val=>$key) echo $key;
|