Home
last modified time | relevance | path

Searched refs:key (Results 101 – 125 of 1127) sorted by relevance

12345678910>>...46

/PHP-8.0/ext/opcache/tests/jit/
H A Dinc_020.phpt15 foreach ($row as $key => $value) {
16 if (is_int($key)) {
17 $key++;
19 if (isset($row[$key])) {
/PHP-8.0/ext/session/
H A Dmod_mm.c48 char key[1]; /* inline key */ member
115 keylen = strlen(key); in ps_sd_new()
124 hv = ps_sd_hash(key, keylen); in ps_sd_new()
132 memcpy(sd->key, key, keylen + 1); in ps_sd_new()
154 slot = ps_sd_hash(sd->key, strlen(sd->key)) & data->hash_max; in ps_sd_destroy()
180 hv = ps_sd_hash(key, strlen(key)); in ps_sd_lookup()
184 if (ret->hv == hv && !strcmp(ret->key, key)) { in ps_sd_lookup()
208 if (!key) { in ps_mm_key_exists()
211 sd = ps_sd_lookup(data, key, 0); in ps_mm_key_exists()
355 if (key) { in PS_READ_FUNC()
[all …]
/PHP-8.0/ext/standard/tests/array/
H A Dbug21998.phpt8 var_dump(key($a));
10 var_dump(key($a));
12 var_dump(key($a));
14 var_dump(key($a));
H A Darray_flip_variation5.phpt11 // array with numeric key repeatition
15 // array with string key repeatition
16 $input = array("key" => 1, "two" => 'TWO', 'three' => 3, 'key' => "FOUR");
19 // array with bool key repeatition
23 // array with null key repeatition
49 string(3) "key"
/PHP-8.0/Zend/tests/
H A Dbug34467.phpt8 function __set ($key, $value) {
9 $this->arr[$key] = $value;
12 function __get ($key) {
13 return $this->arr[$key];
H A Dundef_index_to_exception.phpt19 $test["key"] .= "xyz";
39 Undefined array key 0
42 Undefined array key "key"
45 Undefined array key "test"
H A Dbug70321.phpt12 public function & __get($key)
18 public function & offsetGet($key) {
22 public function offsetSet($key, $val) {
24 public function offsetUnset($key) {
26 public function offsetExists($key) {
H A Dbug40509.phpt2 Bug #40509 (key() function changed behaviour if global array is used within function)
15 var_dump(key($arr["v"]));
17 var_dump(key($arr["v"]));
21 var_dump(key($arr["v"]));
/PHP-8.0/ext/spl/tests/
H A Diterator_044.phpt81 Warning: Undefined array key "0" in %s on line %d
86 CachingIterator::offsetExists(): Argument #1 ($key) must be of type string, stdClass given
87 CachingIterator::offsetGet(): Argument #1 ($key) must be of type string, stdClass given
93 Warning: Undefined array key "foo" in %s on line %d
99 Warning: Undefined array key "" in %s on line %d
105 Warning: Undefined array key "2" in %s on line %d
111 Warning: Undefined array key "foo" in %s on line %d
117 Warning: Undefined array key "3" in %s on line %d
128 CachingIterator::offsetGet(): Argument #1 ($key) must be of type string, stdClass given
138 Warning: Undefined array key "" in %s on line %d
[all …]
H A Diterator_004.phpt30 public function key()
91 NumericArrayIterator::key
96 NumericArrayIterator::key
101 NumericArrayIterator::key
110 NumericArrayIterator::key
115 NumericArrayIterator::key
120 NumericArrayIterator::key
128 NumericArrayIterator::key
133 NumericArrayIterator::key
138 NumericArrayIterator::key
H A Dgh8121.phpt2 GH-8121 (SplFileObject - seek and key with csv file inconsistent)
15 var_dump($file->key());
17 var_dump($file->key());
19 var_dump($file->key());
21 var_dump($file->key());
H A DarrayObject_getIteratorClass_basic1.phpt36 function key() {
39 return parent::key();
48 foreach($ao as $key=>$value) {
49 echo " $key=>$value\n";
56 foreach($ao as $key=>$value) {
57 echo "$key=>$value\n";
81 In MyIterator::key()
86 In MyIterator::key()
91 In MyIterator::key()
/PHP-8.0/Zend/
H A Dzend_weakrefs.h31 ZEND_API zval *zend_weakrefs_hash_add(HashTable *ht, zend_object *key, zval *pData);
32 ZEND_API zend_result zend_weakrefs_hash_del(HashTable *ht, zend_object *key);
33 static zend_always_inline void *zend_weakrefs_hash_add_ptr(HashTable *ht, zend_object *key, void *p… in zend_weakrefs_hash_add_ptr() argument
36 if ((zv = zend_weakrefs_hash_add(ht, key, &tmp))) { in zend_weakrefs_hash_add_ptr()
H A Dzend_hash.c801 p->key = key; in _zend_hash_add_or_update_i()
1152 b->key = key; in zend_hash_set_bucket_key()
1236 q->key = p->key; in zend_hash_rehash()
1255 q->key = p->key; in zend_hash_rehash()
1380 if ((p->key == key) || in zend_hash_del()
1410 if ((p->key == key) || in zend_hash_del_ind()
2009 q->key = p->key; in zend_array_dup_element()
2211 hash_key.key = p->key; in zend_hash_replace_checker_wrapper()
2462 key = p->key; in zend_hash_bucket_swap()
2466 p->key = q->key; in zend_hash_bucket_swap()
[all …]
/PHP-8.0/ext/sysvshm/tests/
H A D006.phpt11 $key = ftok(__FILE__, 't');
12 $s = shm_attach($key, 1024);
34 Warning: shm_remove_var(): Variable key -10 doesn't exist in %s006.php on line %d
39 Warning: shm_get_var(): Variable key 1 doesn't exist in %s006.php on line %d
42 Warning: shm_remove_var(): Variable key 1 doesn't exist in %s006.php on line %d
45 Warning: shm_get_var(): Variable key 1 doesn't exist in %s006.php on line %d
/PHP-8.0/ext/dba/tests/
H A Ddba_inifile.phpt24 "key number 6" written
25 "key number 6" written 2nd time
29 ["key number 6"]=>
41 "key number 6" written
42 "key number 6" written 2nd time
46 ["key number 6"]=>
H A Ddba_ndbm.phpt20 "key number 6" written
21 Failed to write "key number 6" 2nd time
25 ["key number 6"]=>
37 "key number 6" written
38 Failed to write "key number 6" 2nd time
42 ["key number 6"]=>
H A Ddba_db1.phpt20 "key number 6" written
21 Failed to write "key number 6" 2nd time
25 ["key number 6"]=>
37 "key number 6" written
38 Failed to write "key number 6" 2nd time
42 ["key number 6"]=>
H A Ddba_db2.phpt20 "key number 6" written
21 Failed to write "key number 6" 2nd time
25 ["key number 6"]=>
37 "key number 6" written
38 Failed to write "key number 6" 2nd time
42 ["key number 6"]=>
H A Ddba_db3.phpt20 "key number 6" written
21 Failed to write "key number 6" 2nd time
25 ["key number 6"]=>
37 "key number 6" written
38 Failed to write "key number 6" 2nd time
42 ["key number 6"]=>
/PHP-8.0/ext/spl/
H A Dspl_observer.c85 key->key = Z_STR(rv); in spl_object_storage_get_hash()
97 key->key = NULL; in spl_object_storage_get_hash()
104 if (key->key) { in spl_object_storage_free_hash()
105 zend_string_release_ex(key->key, 0); in spl_object_storage_free_hash()
119 if (key->key) { in spl_object_storage_get()
120 return zend_hash_find_ptr(&intern->storage, key->key); in spl_object_storage_get()
153 if (key.key) { in spl_object_storage_attach()
169 if (key.key) { in spl_object_storage_detach()
170 ret = zend_hash_del(&intern->storage, key.key); in spl_object_storage_detach()
337 if (key.key) { in spl_object_storage_contains()
[all …]
/PHP-8.0/tests/lang/
H A DforeachLoopIteratorAggregate.001.phpt33 public function key() {
69 public function key() {
169 --> EnglishMealIterator::key (0)
174 --> EnglishMealIterator::key (1)
179 --> EnglishMealIterator::key (2)
188 --> FrenchMealIterator::key (0)
193 --> FrenchMealIterator::key (1)
198 --> FrenchMealIterator::key (2)
203 --> FrenchMealIterator::key (3)
215 --> EnglishMealIterator::key (0)
[all …]
H A DforeachLoopIteratorAggregate.003.phpt33 public function key() {
80 --> EnglishMealIterator::key (0)
85 --> EnglishMealIterator::key (1)
90 --> EnglishMealIterator::key (2)
99 --> EnglishMealIterator::key (0)
104 --> EnglishMealIterator::key (1)
109 --> EnglishMealIterator::key (2)
118 --> EnglishMealIterator::key (0)
123 --> EnglishMealIterator::key (1)
128 --> EnglishMealIterator::key (2)
/PHP-8.0/ext/openssl/tests/
H A Dbug61930.phpt2 Bug #61930: openssl corrupts ssl key resource when using openssl_get_publickey()
19 $key = openssl_get_publickey($cert);
20 var_dump(openssl_get_publickey($key));
21 var_dump(openssl_verify($data, base64_decode($sig), $key));
/PHP-8.0/ext/sysvsem/
H A Dsysvsem.c191 zend_long key, max_acquire = 1, perm = 0666; in PHP_FUNCTION() local
198 …if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "l|llb", &key, &max_acquire, &perm, &auto_re… in PHP_FUNCTION()
208 semid = semget(key, 3, perm|IPC_CREAT); in PHP_FUNCTION()
210 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", key, strerror(errno)); in PHP_FUNCTION()
250 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", key, strerror(errno)); in PHP_FUNCTION()
261 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", key, strerror(errno)); in PHP_FUNCTION()
266 php_error_docref(NULL, E_WARNING, "Failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
271 php_error_docref(NULL, E_WARNING, "Failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
291 sem_ptr->key = key; in PHP_FUNCTION()
319 …ror_docref(NULL, E_WARNING, "SysV semaphore for key 0x%x is not currently acquired", sem_ptr->key); in php_sysvsem_semop()
[all …]

Completed in 89 milliseconds

12345678910>>...46