Home
last modified time | relevance | path

Searched refs:key (Results 51 – 75 of 1127) sorted by relevance

12345678910>>...46

/PHP-8.0/ext/spl/tests/
H A DCallbackFilterIteratorTest.phpt7 function test($value, $key, $inner) {
8 return test($value, $key, $inner);
13 static function test($value, $key, $inner) {
14 return test($value, $key, $inner);
18 function test($value, $key, $inner) {
21 , $key
23 , $key == $inner->key()
33 …ymous function' => function() { return function($value, $key, $inner) { return test($value, $key, …
H A Dfileobject_001.phpt8 var_dump($o->key());
11 var_dump($o->key());
13 var_dump($o->key());
15 var_dump($o->key());
17 var_dump($o->key());
19 var_dump($o->key());
21 var_dump($o->key());
23 var_dump($o->key());
25 var_dump($o->key());
H A DRecursiveCallbackFilterIteratorTest.phpt7 function test($value, $key, $inner) {
8 return test($value, $key, $inner);
13 static function test($value, $key, $inner) {
14 return test($value, $key, $inner);
18 function test($value, $key, $inner) {
24 , $key
26 , $key == $inner->key()
36 …ymous function' => function() { return function($value, $key, $inner) { return test($value, $key, …
H A Dbug61527.phpt10 var_dump($ai->key());
17 $ao2->offsetUnset($ai2->key());
21 $ao2->offsetUnset($ai2->key());
22 var_dump($ai2->key());
25 $ao2->offsetUnset($ai2->key());
29 var_dump($ai2->key());
34 var_dump($ai2->key());
42 var_dump($ai2->key());
59 $ao4->offsetUnset($ai4->key());
62 $ao4->offsetUnset($ai4->key());
/PHP-8.0/ext/spl/
H A Dspl_array.stub.php10 public function offsetExists(mixed $key) {} argument
13 public function offsetGet(mixed $key) {} argument
16 public function offsetSet(mixed $key, mixed $value) {} argument
19 public function offsetUnset(mixed $key) {} argument
90 public function offsetExists(mixed $key) {} argument
96 public function offsetGet(mixed $key) {} argument
102 public function offsetSet(mixed $key, mixed $value) {} argument
108 public function offsetUnset(mixed $key) {} argument
207 public function key() {} function in ArrayIterator
H A Dspl_iterators.stub.php14 public function key() {} function in EmptyIterator
65 public function key() {} function in RecursiveIteratorIterator
130 public function key() {} function in IteratorIterator
226 * @param string $key
229 public function offsetGet($key) {} argument
232 * @param string $key
238 * @param string $key
241 public function offsetUnset($key) {} argument
244 * @param string $key
278 public function key() {} function in NoRewindIterator
[all …]
/PHP-8.0/tests/lang/
H A Dbug24783.phpt2 Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)")
7 foreach ($arr as $key => $val) {
8 echo strlen($key), ': ';
9 echo urlencode($key), ' => ', urlencode($val), "\n";
/PHP-8.0/ext/soap/tests/
H A Dbug48557.phpt24 <key xsi:type="xsd:int">1</key>
28 <key xsi:type="xsd:int">-1000</key>
32 <key xsi:type="xsd:string">2</key>
36 <key xsi:type="xsd:string">-2000</key>
40 <key xsi:type="xsd:string">011</key>
44 <key xsi:type="xsd:int">012</key>
/PHP-8.0/ext/dba/tests/
H A Dbug65708.phpt2 Bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write)
16 $key = 1;
17 $copy = $key;
19 echo gettype($key)."\n";
22 dba_exists($key, $db);
24 echo gettype($key)."\n";
H A Ddba_cdb_read.phpt14 // read key sequence
23 // display number of entries and key existence
43 $key = substr($keys, $i, 1);
44 $skip[$key] = 0;
45 echo dba_fetch($key, $db_file);
49 $key = substr($keys, $i, 1);
50 echo dba_fetch($key, $skip[$key], $db_file);
51 $skip[$key]++;
/PHP-8.0/Zend/tests/
H A Dforeach_004.phpt21 function key() {$this->trap(__FUNCTION__); return parent::key();}
25 foreach(['rewind', 'valid', 'key', 'next'] as $trap) {
29 foreach ($obj as $key => &$val) echo "$val\n";
37 foreach (new IT($trap) as $key => &$val) echo "$val\n";
44 foreach ((object)new IT($trap) as $key => &$val) echo "$val\n";
57 key
58 key
59 key
H A Dbug76800.phpt6 foreach($arr as $key => &$val) { // without & will print both keys
7 echo "See key {$key}\n";
13 See key 1
14 See key 3
/PHP-8.0/ext/sysvshm/
H A Dsysvshm.stub.php9 function shm_attach(int $key, ?int $size = null, int $permissions = 0666): SysvSharedMemory|false {} argument
13 function shm_has_var(SysvSharedMemory $shm, int $key): bool {} argument
17 function shm_put_var(SysvSharedMemory $shm, int $key, mixed $value): bool {} argument
19 function shm_get_var(SysvSharedMemory $shm, int $key): mixed {} argument
21 function shm_remove_var(SysvSharedMemory $shm, int $key): bool {} argument
/PHP-8.0/Zend/tests/generators/
H A Dgenerator_with_keys.phpt8 while (null !== $key = key($array)) {
9 yield $key => current($array);
19 foreach (reverse($array) as $key => $value) {
20 echo $key, ' => ', $value, "\n";
/PHP-8.0/ext/openssl/tests/
H A Dopenssl_private_encrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
9 $pubkey = "file://" . __DIR__ . "/public.key";
30 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d
33 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d
36 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d
H A Dopenssl_public_encrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
9 $pubkey = "file://" . __DIR__ . "/public.key";
30 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d
33 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d
36 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d
H A Dbug25614.phpt2 openssl: get public key from generated private key
6 if (!@openssl_pkey_new()) die("skip cannot create private key");
14 Warning: openssl_pkey_get_public(): Don't know how to get public key from this private key %s
H A Dopenssl_x509_verify.phpt11 $fp = fopen(__DIR__ . "/public.key","r");
16 $key = "file://" . __DIR__ . "/public.key";
17 $wrongKey = "file://" . __DIR__ . "/public_rsa_2048.key";
19 var_dump(openssl_x509_verify($cert, $key));
20 var_dump(openssl_x509_verify("", $key));
H A Dbug38255.phpt2 openssl key from zval leaks
28 Warning: openssl_verify(): Supplied key param cannot be coerced into a public key in %s on line %d
30 Warning: openssl_verify(): Supplied key param cannot be coerced into a public key in %s on line %d
33 Warning: openssl_verify(): Supplied key param cannot be coerced into a public key in %s on line %d
H A Dopenssl_pkey_get_details_basic.phpt2 openssl_pkey_get_details() with EC key
10 $key = openssl_pkey_get_private("file://" . __DIR__ . "/private_ec.key");
12 print_r(openssl_pkey_get_details($key));
18 [key] => -----BEGIN PUBLIC KEY-----%a
/PHP-8.0/ext/com_dotnet/
H A Dcom_iterator.c31 zend_ulong key; member
75 ZVAL_NULL(key); in com_iter_get_key()
77 ZVAL_LONG(key, I->key); in com_iter_get_key()
98 I->key++; in com_iter_move_forwards()
101 I->key = (zend_ulong)-1; in com_iter_move_forwards()
107 I->key = (zend_ulong)-1; in com_iter_move_forwards()
110 I->key++; in com_iter_move_forwards()
112 I->key = (zend_ulong)-1; in com_iter_move_forwards()
192 I->key = bound; in php_com_iter_get()
197 I->key = (zend_ulong)-1; in php_com_iter_get()
[all …]
/PHP-8.0/tests/classes/
H A Dconstants_basic_004.phpt14 const KEY = "key";
47 ["key"]=>
51 ["key"]=>
55 ["key"]=>
59 ["key"]=>
63 ["key"]=>
71 ["key"]=>
78 ["key"]=>
85 ["key"]=>
90 ["key"]=>
[all …]
/PHP-8.0/ext/sodium/tests/
H A Dcrypto_secretbox.phpt8 $key = sodium_crypto_secretbox_keygen();
10 $a = sodium_crypto_secretbox('test', $nonce, $key);
11 $x = sodium_crypto_secretbox_open($a, $nonce, $key);
13 $y = sodium_crypto_secretbox_open("\0" . $a, $nonce, $key);
17 sodium_crypto_secretbox('test', substr($nonce, 1), $key);
/PHP-8.0/ext/standard/tests/array/
H A Dbug70250.phpt5 $array = ['key' => 'value'];
7 $ref = &$array['key'];
13 $key = "bad";
19 ["key"]=>
H A Darray_key_first.phpt50 First key is :
67 First key is :
80 First key is :
96 First key is :
109 First key is :
122 First key is :
135 First key is :
155 First key is :
167 First key is :
195 First key is :
[all …]

Completed in 51 milliseconds

12345678910>>...46