Home
last modified time | relevance | path

Searched refs:key (Results 176 – 200 of 1053) sorted by relevance

12345678910>>...43

/PHP-7.4/ext/standard/tests/array/
H A Duasort_variation3.phpt54 // default key
55 1, //expecting: default key 0, value will be replaced by 'FALSE'
65 'key' => 5, //single quoted key
66 "two" => 4, //double quoted key
69 " " => 0, // space as key
81 // binary key
126 ["key"]=>
H A Dusort_variation3.phpt50 'key' => 5, //single quoted key
51 "two" => 4, //double quoted key
52 " " => 0, // space as key
61 // binary key
69 // default key
H A Dbug35022.phpt2 Bug #35022 (Regression in the behavior of key/current functions)
9 echo key($state) . " => " . current($state) . "\n";
14 var_dump( key($state), current($state) );
H A Darray_walk_variation4.phpt17 /* Prototype : callback(mixed $value, mixed $key)
19 * $key - keys in given 'input' array
22 function callback($value, $key)
26 var_dump($key); // key
H A Darray_flip_variation2.phpt6 * Description: Return array with key <-> value flipped
30 // default key
31 'one', //expected: default key 0, value will be replaced by 'bool_key4'
41 'key' => 'string_key1',
57 // binary key
87 string(3) "key"
/PHP-7.4/tests/lang/
H A DforeachLoopIterator.001.phpt34 public function key() {
87 --> MealIterator::key (0)
92 --> MealIterator::key (1)
97 --> MealIterator::key (2)
109 --> MealIterator::key (0)
116 --> MealIterator::key (0)
121 --> MealIterator::key (1)
126 --> MealIterator::key (2)
H A Deach_binary_safety.phpt7 while (list($key, $val) = each($arr)) {
8 echo strlen($key), ': ';
9 echo urlencode($key), ' => ', urlencode($val), "\n";
/PHP-7.4/ext/spl/tests/
H A Dbug62073.phpt7 foreach ($heap as $key => $value) {
8 var_dump($key);
15 var_dump($heap->key());
H A Diterator_012.phpt10 echo $it->key() . '=>' . $it->current() . "\n";
18 foreach($it as $key=>$val)
20 echo "$key=>$val\n";
H A Darray_012.phpt12 foreach($it as $key => $val)
14 echo "$key=>$val\n";
34 foreach($it as $key => $val)
36 echo "$key=>$val\n";
H A Dbug53515.phpt12 foreach ($a as $key => $value) {
13 echo $key . ': ' . (is_null($value) ? 'null' : @"$value") .
14 ' array_key_exists: ' . (array_key_exists($key, $a) ? 'true' : 'false') .
15 ' property_exists: ' . (property_exists($o, $key) ? 'true' : 'false'),"\n";
H A Dobserver_002.phpt20 function key()
22 echo __METHOD__ . "(" . parent::key() . ")\n";
23 return parent::key();
90 foreach($this->observers as $key => $observer)
154 MyObjectStorage::key(0)
159 MyObjectStorage::key(1)
164 MyObjectStorage::key(2)
174 MyObjectStorage::key(0)
179 MyObjectStorage::key(1)
195 MyObjectStorage::key(0)
H A Dbug74669.phpt32 public function key()
34 return $this->iterator->key();
65 foreach ($container as $key => $value) {
66 echo $key . ' => ' . $value . PHP_EOL;
74 foreach($arObj as $key => $value) {
75 echo $key . ' => ' . $value . PHP_EOL;
H A Diterator_021.phpt64 function key()
67 return parent::key();
116 RecursiveArrayIteratorIterator::key
125 RecursiveArrayIteratorIterator::key
134 RecursiveArrayIteratorIterator::key
140 RecursiveArrayIteratorIterator::key
151 RecursiveArrayIteratorIterator::key
166 RecursiveArrayIteratorIterator::key
174 RecursiveArrayIteratorIterator::key
/PHP-7.4/ext/dba/
H A Ddba_lmdb.c131 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_FETCH_FUNC()
136 k.mv_data = key; in DBA_FETCH_FUNC()
141 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_FETCH_FUNC()
173 k.mv_data = key; in DBA_UPDATE_FUNC()
207 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_EXISTS_FUNC()
212 k.mv_data = key; in DBA_EXISTS_FUNC()
217 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_EXISTS_FUNC()
239 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_DELETE_FUNC()
244 k.mv_data = key; in DBA_DELETE_FUNC()
250 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_DELETE_FUNC()
[all …]
H A Ddba.c74 ZEND_ARG_INFO(0, key)
79 ZEND_ARG_INFO(0, key)
85 ZEND_ARG_INFO(0, key)
97 ZEND_ARG_INFO(0, key)
102 ZEND_ARG_INFO(0, key)
108 ZEND_ARG_INFO(0, key)
581 zval *key; in php_dba_update() local
686 key[keylen] = '\0'; in php_dba_open()
1116 char *key, *name; in PHP_FUNCTION() local
1131 if (key[0] == '[' && (name = strchr(key, ']')) != NULL) { in PHP_FUNCTION()
[all …]
/PHP-7.4/Zend/tests/
H A Dbug40705.phpt13 var_dump(key($foo));
15 var_dump(key($foo));
19 var_dump(key($foo));
H A Disset_str_offset.phpt29 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']));
H A Dempty_str_offset.phpt30 var_dump(empty($str[$key = '-1'])); // 3
31 var_dump(empty($str[$key = '-10']));
32 var_dump(empty($str[$key = '0']));
33 var_dump(empty($str[$key = '1']));
34 var_dump(empty($str[$key = '4'])); // 0
35 var_dump(empty($str[$key = '1.5']));
36 var_dump(empty($str[$key = 'good']));
37 var_dump(empty($str[$key = '3 and a half']));
/PHP-7.4/ext/sodium/tests/
H A Dcrypto_secretstream.phpt14 $key = sodium_crypto_secretstream_xchacha20poly1305_keygen();
17 $res = sodium_crypto_secretstream_xchacha20poly1305_init_push($key);
24 $stream = sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
37 $stream = sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
43 $stream = sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_pam_sha256_public_key_ini.phpt42 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error));
45 $key = $row['Value'];
46 if (strlen($key) < 100) {
47 …die(sprintf("skip Server misconfiguration? RSA pub key is suspicious, [%d] %s\n", $link->errno, $l…
53 die(sprintf("skip Cannot create RSA pub key file '%s'", $file));
55 $key = str_replace("A", "a", $key);
56 $key = str_replace("M", "m", $key);
57 if (strlen($key) != fwrite($fp, $key)) {
58 die(sprintf("skip Failed to create pub key file"));
/PHP-7.4/ext/openssl/tests/
H A Dbug73711.phpt2 Bug #73711: Segfault in openssl_pkey_new when generating DSA or DH key
15 resource(%d) of type (OpenSSL key)
16 resource(%d) of type (OpenSSL key)
H A Dbug80747.phpt2 Bug #80747: Providing RSA key size < 512 generates key that crash PHP
24 error:%s:key size too small
/PHP-7.4/ext/reflection/tests/
H A DReflectionParameter_export_error2.phpt13 foreach($params as $key => $value) {
14 ReflectionParameter::export($reflect, $key);
21 foreach($params as $key => $value) {
22 ReflectionParameter::export(42, $key);
/PHP-7.4/ext/phar/tests/
H A Dphar_oo_004.phpt48 function key()
51 return parent::key();
104 MyDirectoryIterator::key
110 MyDirectoryIterator::key
116 MyDirectoryIterator::key
122 MyDirectoryIterator::key

Completed in 28 milliseconds

12345678910>>...43