Home
last modified time | relevance | path

Searched refs:key (Results 151 – 175 of 1053) sorted by relevance

12345678910>>...43

/PHP-7.4/ext/date/tests/
H A Ddate_sun_info_003.phpt9 foreach ($sun_info as $key => $elem ) {
10 echo "$key: " . date("H:i:s", $elem) . "\n";
16 foreach ($sun_info as $key => $elem ) {
17 echo "$key: " . date("H:i:s", $elem) . "\n";
/PHP-7.4/ext/standard/tests/array/
H A Darray_key_exists_variation5.phpt5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
21 echo "\n-- Attempt to match key in sub-array --\n";
22 // this key is in the sub-array
33 -- Attempt to match key in sub-array --
H A Darray_key_exists_basic.phpt5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
17 $key1 = 'key';
19 $search = array('one', 'key' => 'value', 'val');
H A Dbug61967.phpt14 function (&$value, $key) use(&$arr) {
15 var_dump($key);
16 unset($arr[$key]);
H A Darray_key_exists_object1.phpt5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
33 echo "\$key = var1:\n";
35 echo "\$key = var3:\n";
42 echo "\$key = var3:\n";
53 $key = var1:
57 $key = var3:
72 $key = var3:
H A Darray_slice_variation7.phpt116 -- Iteration 1 : key type is int --
140 -- Iteration 2 : key type is float --
160 -- Iteration 3 : key type is extreme floats --
176 -- Iteration 4 : key type is null uppercase --
188 -- Iteration 5 : key type is null lowercase --
200 -- Iteration 6 : key type is bool lowercase --
216 -- Iteration 7 : key type is bool uppercase --
232 -- Iteration 8 : key type is empty double quotes --
256 -- Iteration 10 : key type is string --
276 -- Iteration 11 : key type is undefined --
[all …]
/PHP-7.4/Zend/tests/
H A Dbug68215.phpt29 foreach ($child AS $key => $fruit)
31 if (!is_numeric($key))
34 unset($child[$key]);
42 foreach ($arr AS $key => $fruit)
51 unset($arr[$key]);
H A Dforeach_list_003.phpt2 foreach with list key
8 foreach($array as list($key) => list(list(), $a)) {
13 Fatal error: Cannot use list as key element in %sforeach_list_003.php on line %d
/PHP-7.4/ext/pgsql/tests/
H A D80_bug14383.phpt28 "key number 6" written
29 Failed to write "key number 6" 2nd time
33 ["key number 6"]=>
45 "key number 6" written
46 Failed to write "key number 6" 2nd time
50 ["key number 6"]=>
/PHP-7.4/ext/standard/tests/network/
H A Dsetcookie_error.phpt10 // Unrecognized key and no valid keys
12 // Numeric key and no valid keys
14 // Unrecognized key
23 Warning: setcookie(): Unrecognized key 'unknown_key' found in the options array in %s
27 Warning: setcookie(): Numeric key found in the options array in %s
31 Warning: setcookie(): Unrecognized key 'foo' found in the options array in %s
/PHP-7.4/ext/session/tests/
H A Dsession_encode_error2.phpt103 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
110 Notice: session_encode(): Skipping numeric key 1 in %s on line %d
131 Notice: session_encode(): Skipping numeric key 10 in %s on line %d
138 Notice: session_encode(): Skipping numeric key -10 in %s on line %d
145 Notice: session_encode(): Skipping numeric key %s in %s on line %d
152 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
159 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
176 Notice: session_encode(): Skipping numeric key 1 in %s on line %d
183 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
190 Notice: session_encode(): Skipping numeric key 1 in %s on line %d
[all …]
H A Dsession_set_save_handler_class_001.phpt35 public function read($key) {
38 return parent::read($key);
40 public function write($key, $data) {
43 return parent::write($key, $data);
58 public function validateId($key) {
64 // return parent::validateSid($key);
66 public function updateTimestamp($key, $data) {
69 return parent::write($key, $data);
72 // return parent::updateTimestamp($key, $data);
/PHP-7.4/ext/session/
H A Dmod_files.c116 key_len = strlen(key); in ps_files_path_create()
122 p = key; in ps_files_path_create()
132 memcpy(buf + n, key, key_len); in ps_files_path_create()
172 if (php_session_valid_key(key) == FAILURE) { in ps_files_open()
182 data->lastkey = estrdup(key); in ps_files_open()
238 ps_files_open(data, ZSTR_VAL(key)); in ps_files_write()
347 if (!key || !ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_key_exists()
481 ps_files_open(data, ZSTR_VAL(key)); in PS_READ_FUNC()
552 return ps_files_write(data, key, val); in PS_WRITE_FUNC()
584 return ps_files_write(data, key, val); in PS_UPDATE_TIMESTAMP_FUNC()
[all …]
/PHP-7.4/ext/openssl/tests/
H A Dbug38255.phpt2 openssl key from zval leaks
33 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
35 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
38 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
H A Dbug73478.phpt16 printf("Private key:\n%s\n", base64_encode($data['dh']['priv_key']));
17 printf("Public key:\n%s\n", base64_encode($data['dh']['pub_key']));
20 Private key:
22 Public key:
/PHP-7.4/ext/standard/
H A Dhttp.c32 zend_string *key = NULL; in php_url_encode_hash_ex() local
56 ZEND_HASH_FOREACH_KEY_VAL(ht, idx, key, zdata) { in php_url_encode_hash_ex()
68 if (key) { in php_url_encode_hash_ex()
69 prop_name = ZSTR_VAL(key); in php_url_encode_hash_ex()
70 prop_len = ZSTR_LEN(key); in php_url_encode_hash_ex()
77 if (ZSTR_VAL(key)[0] == '\0' && type != NULL) { in php_url_encode_hash_ex()
79 zend_unmangle_property_name_ex(key, &tmp, &prop_name, &prop_len); in php_url_encode_hash_ex()
81 prop_name = ZSTR_VAL(key); in php_url_encode_hash_ex()
82 prop_len = ZSTR_LEN(key); in php_url_encode_hash_ex()
91 if (key) { in php_url_encode_hash_ex()
[all …]
/PHP-7.4/ext/simplexml/tests/
H A Dbug46048.phpt9 <key>value</key>
24 [key] => value
H A Dbug67572.phpt16 foreach($xml as $key => $value) {
17 print "$key = $value ... ";
22 foreach($xml2 as $key => $value) {
23 print "$key = $value ... ";
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_sockets.c35 char *key; member
87 unlink(ls->key); in fpm_sockets_cleanup()
90 free(ls->key); in fpm_sockets_cleanup()
129 if (key == NULL) { in fpm_sockets_hash_op()
132 key = alloca(INET6_ADDRSTRLEN+10); in fpm_sockets_hash_op()
134 sprintf(key+strlen(key), ":%d", fpm_get_in_port(sa)); in fpm_sockets_hash_op()
141 strcpy(key, sa_un->sun_path); in fpm_sockets_hash_op()
158 if (!strcmp(ls->key, key)) { in fpm_sockets_hash_op()
183 ls->key = strdup(key); in fpm_sockets_hash_op()
464 unlink(ls->key); in fpm_sockets_init_main()
[all …]
/PHP-7.4/Zend/
H A Dzend_ts_hash.c90 ZEND_API zval *zend_ts_hash_add(TsHashTable *ht, zend_string *key, zval *pData) in zend_ts_hash_add() argument
95 retval = zend_hash_add(TS_HASH(ht), key, pData); in zend_ts_hash_add()
106 retval = zend_hash_update(TS_HASH(ht), key, pData); in zend_ts_hash_update()
139 retval = zend_hash_add_empty_element(TS_HASH(ht), key); in zend_ts_hash_add_empty_element()
189 ZEND_API int zend_ts_hash_del(TsHashTable *ht, zend_string *key) in zend_ts_hash_del() argument
194 retval = zend_hash_del(TS_HASH(ht), key); in zend_ts_hash_del()
211 ZEND_API zval *zend_ts_hash_find(TsHashTable *ht, zend_string *key) in zend_ts_hash_find() argument
216 retval = zend_hash_find(TS_HASH(ht), key); in zend_ts_hash_find()
329 retval = zend_hash_str_find(TS_HASH(ht), key, len); in zend_ts_hash_str_find()
340 retval = zend_hash_str_update(TS_HASH(ht), key, len, pData); in zend_ts_hash_str_update()
[all …]
H A Dzend_ts_hash.h49 ZEND_API zval *zend_ts_hash_update(TsHashTable *ht, zend_string *key, zval *pData);
50 ZEND_API zval *zend_ts_hash_add(TsHashTable *ht, zend_string *key, zval *pData);
53 ZEND_API zval* zend_ts_hash_add_empty_element(TsHashTable *ht, zend_string *key);
64 ZEND_API int zend_ts_hash_del(TsHashTable *ht, zend_string *key);
68 ZEND_API zval *zend_ts_hash_find(TsHashTable *ht, zend_string *key);
90 ZEND_API zval *zend_ts_hash_str_find(TsHashTable *ht, const char *key, size_t len);
91 ZEND_API zval *zend_ts_hash_str_update(TsHashTable *ht, const char *key, size_t len, zval *pData);
92 ZEND_API zval *zend_ts_hash_str_add(TsHashTable *ht, const char *key, size_t len, zval *pData);
120 static zend_always_inline int zend_ts_hash_exists(TsHashTable *ht, zend_string *key) in zend_ts_hash_exists() argument
122 return zend_ts_hash_find(ht, key) != NULL; in zend_ts_hash_exists()
/PHP-7.4/ext/xsl/tests/
H A Dxsltprocessor_removeParameter.phpt13 $proc->setParameter('', 'key', 'value');
14 $proc->removeParameter('', 'key');
15 var_dump($proc->getParameter('', 'key'));
/PHP-7.4/ext/spl/tests/
H A Darray_020.phpt20 function key()
23 return ArrayIterator::key();
53 ArrayIteratorEx::key
59 ArrayIteratorEx::key
/PHP-7.4/ext/dba/tests/
H A Ddba_db4_handlers.phpt21 foreach ($h as $key) {
22 if ($key === "db4") {
34 foreach ($h as $key => $val) {
35 if ($key === "db4") {
/PHP-7.4/ext/ffi/tests/
H A D008.phpt13 foreach ($a as $key => $val) {
14 echo "$key => $val\n";
25 foreach ($a as $key => $val) {
26 echo "$key => $val\n";

Completed in 60 milliseconds

12345678910>>...43