Home
last modified time | relevance | path

Searched refs:key (Results 26 – 50 of 1053) sorted by relevance

12345678910>>...43

/PHP-7.4/ext/hash/
H A Dhash_gost.c39 round(tables, key[0], key[1]) \
40 round(tables, key[2], key[3]) \
41 round(tables, key[4], key[5]) \
42 round(tables, key[6], key[7]) \
43 round(tables, key[0], key[1]) \
44 round(tables, key[2], key[3]) \
45 round(tables, key[4], key[5]) \
46 round(tables, key[6], key[7]) \
47 round(tables, key[0], key[1]) \
48 round(tables, key[2], key[3]) \
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Dkey_basic.phpt2 Test key() function : basic functionality
5 /* Prototype : mixed key(array $array_arg)
6 * Description: Return the key of the element currently pointed to by the internal array pointer
11 * Test basic functionality of key()
14 echo "*** Testing key() : basic functionality ***\n";
18 var_dump(key($array));
22 var_dump(key($array));
26 var_dump(key($array));
30 var_dump(key($array));
34 *** Testing key() : basic functionality ***
H A Dkey_variation4.phpt2 Test key() function : usage variations
5 /* Prototype : mixed key(array $array_arg)
14 echo "*** Testing key() : usage variations ***\n";
19 var_dump(key($multi_array));
23 var_dump(key($multi_array));
27 var_dump(key($multi_array));
32 var_dump(key($multi_array[1]));
40 var_dump(key($multi_array));
43 var_dump(key($multi_array[3][3][3]));
45 var_dump(key($multi_array[3][3][3][1]));
[all …]
H A Dbug14580.phpt2 Bug #14580 (key() not binary safe)
6 $key = key($arr);
7 echo strlen($key), ': ';
8 echo urlencode($key), "\n";
H A Dbug61730.phpt9 function($value, $key) use ($myArray)
17 function($value, $key) use (&$myArray)
19 var_dump($key);
20 unset($myArray[$key]);
21 unset($myArray[$key+1]);
22 unset($myArray[$key+2]);
H A Dbug12776.phpt6 function test($val,$key)
9 $globalArray[]=$key; // this will end up crashing
10 $globalArray[]=(string)$key; // this will end up OK
11 print "val: $val; key: $key\n"; flush();
23 val: v; key: k
H A Darray_walk_basic2.phpt16 /* Prototype : test_alter(mixed $item, mixed $key, string $prefix)
17 * Parameters : item - value in key/value pair
18 * key - key in key/value pair
22 function test_alter(&$item, $key, $prefix)
27 var_dump($key); // key
32 /* Prototype : test_print(mixed $item, mixed $key)
33 * Parameters : item - value in key/value pair
34 * key - key in key/value pair
37 function test_print($item, $key)
42 var_dump($key); // key
/PHP-7.4/ext/sodium/tests/
H A Dcrypto_aead.phpt14 $key = sodium_crypto_aead_chacha20poly1305_keygen();
17 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key);
18 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $nonce, $key);
21 var_dump(sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, 'x' . $ad, $nonce, $key));
24 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $key, $nonce);
37 $key = sodium_crypto_aead_chacha20poly1305_ietf_keygen();
66 $key = sodium_crypto_aead_xchacha20poly1305_ietf_keygen();
94 $key = sodium_crypto_aead_aes256gcm_keygen();
95 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key);
96 $msg2 = sodium_crypto_aead_aes256gcm_decrypt($ciphertext, $ad, $nonce, $key);
[all …]
H A Dcrypto_kdf.phpt7 $key = sodium_crypto_kdf_keygen();
9 $subkey = sodium_crypto_kdf_derive_from_key(10, 0, "context!", $key);
14 $subkey = sodium_crypto_kdf_derive_from_key(100, 0, "context!", $key);
19 $subkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, 0, "context", $key);
24 $subkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, -1, "context!", $key);
29 …ubkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, 0, "context!", "short key");
34 $subkey1 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 0, "context!", $key);
35 $subkey2 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 1, "context!", $key);
36 $subkey3 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 2, "context2", $key);
37 $subkey4 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 0, "context!", $key);
H A Dcrypto_stream.phpt8 $key = sodium_crypto_stream_keygen();
11 $stream = sodium_crypto_stream($len, $nonce, $key);
14 $stream2 = sodium_crypto_stream($len, $nonce, $key);
17 $stream3 = sodium_crypto_stream($len, $nonce, $key);
19 $key = sodium_crypto_stream_keygen();
20 $stream4 = sodium_crypto_stream($len, $nonce, $key);
29 $stream5 = sodium_crypto_stream_xor($stream, $nonce, $key);
31 $stream6 = sodium_crypto_stream_xor($stream5, $nonce, $key);
36 sodium_crypto_stream($len, substr($nonce, 1), $key);
/PHP-7.4/ext/spl/tests/
H A DarrayObject_exchangeArray_basic2.phpt8 var_dump($ao['key']);
13 $obj->key = 'normal object prop';
15 var_dump($ao['key']);
21 var_dump($ao['key']);
27 var_dump($ao['key']);
33 var_dump($ao['key']);
42 ["key"]=>
52 ["key"]=>
64 ["key"]=>
77 ["key"]=>
[all …]
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 Diterator_008.phpt23 function key()
26 return parent::key();
53 ArrayIteratorEx::key
58 ArrayIteratorEx::key
63 ArrayIteratorEx::key
70 ArrayIteratorEx::key
75 ArrayIteratorEx::key
80 ArrayIteratorEx::key
87 ArrayIteratorEx::key
/PHP-7.4/ext/dba/libinifile/
H A Dinifile.h32 key_type key; member
46 val_type inifile_fetch(inifile *dba, const key_type *key, int skip);
49 int inifile_delete(inifile *dba, const key_type *key);
50 int inifile_delete_ex(inifile *dba, const key_type *key, zend_bool *found);
51 int inifile_replace(inifile *dba, const key_type *key, const val_type *val);
52 int inifile_replace_ex(inifile *dba, const key_type *key, const val_type *val, zend_bool *found);
53 int inifile_append(inifile *dba, const key_type *key, const val_type *val);
57 char * inifile_key_string(const key_type *key);
59 void inifile_key_free(key_type *key);
/PHP-7.4/Zend/tests/
H A Dbug39036.phpt2 Bug #39036 (Unsetting key of foreach() yields segmentation fault)
6 $key = 'asdf';
8 foreach (get_defined_vars() as $key => $value) {
9 unset($$key);
12 var_dump($key);
17 Notice: Undefined variable: key in %s on line %d
H A Dbug79793.phpt6 $key = "foo";
7 $key .= "bar";
8 set_error_handler(function($_, $m) use (&$key) {
10 $key .= "baz";
14 $ary[$key]++;
16 $ary[$key] += 1;
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_public_decrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
9 $pubkey = "file://" . __DIR__ . "/public.key";
30 Warning: openssl_public_decrypt(): key parameter is not a valid public key in %s on line %d
36 Warning: openssl_public_decrypt(): key array must be of the form array(0 => key, 1 => phrase) in %s…
38 Warning: openssl_public_decrypt(): key parameter is not a valid public key in %s on line %d
42 Warning: openssl_public_decrypt(): key array must be of the form array(0 => key, 1 => phrase) in %s…
44 Warning: openssl_public_decrypt(): key parameter is not a valid public key in %s on line %d
H A Dopenssl_free_key.phpt10 die("skip cannot create private key");
14 echo "Creating private key\n";
28 die("failed to create private key");
35 echo "Export key to file\n";
39 echo "Load key from file - array syntax\n";
48 echo "Load key using direct syntax\n";
72 Creating private key
73 Export key to file
74 Load key from file - array syntax
75 Load key using direct syntax
[all …]
H A Dcipher_tests.inc5 'key' => '404142434445464748494a4b4c4d4e4f',
13 'key' => '404142434445464748494a4b4c4d4e4f',
26 'key' => '1bde3251d41a8b5ea013c195ae128b21' .
40 'key' => '00000000000000000000000000000000',
47 'key' => '00000000000000000000000000000000',
54 'key' => 'feffe9928665731c6d6a8f9467308308',
67 'key' => 'feffe9928665731c6d6a8f9467308308',
81 'key' => 'feffe9928665731c6d6a8f9467308308',
95 'key' => 'feffe9928665731c6d6a8f9467308308',
115 'key' => '000102030405060708090A0B0C0D0E0F',
[all …]
/PHP-7.4/ext/session/
H A Dmod_user_class.c96 zend_string *key; in PHP_METHOD() local
100 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &key) == FAILURE) { in PHP_METHOD()
116 zend_string *key, *val; in PHP_METHOD() local
120 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS", &key, &val) == FAILURE) { in PHP_METHOD()
132 zend_string *key; in PHP_METHOD() local
136 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &key) == FAILURE) { in PHP_METHOD()
140 RETURN_BOOL(SUCCESS == PS(default_mod)->s_destroy(&PS(mod_data), key)); in PHP_METHOD()
186 zend_string *key; in PHP_METHOD() local
190 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &key) == FAILURE) { in PHP_METHOD()
203 zend_string *key, *val; in PHP_METHOD() local
[all …]
/PHP-7.4/ext/standard/tests/file/
H A Dfstat_variation8.phpt13 foreach($stat_result as $key =>$value) {
14 if ($isWin && ($key === 0 || $key === 6 || $key === 'dev' || $key === 'rdev')) {
18 if ($fstat_result[$key] != $value) {
19 echo "FAIL: stat differs at '$key'. $fstat_result[$key] -- $value\n";
/PHP-7.4/ext/soap/tests/bugs/
H A Dbug37083.phpt29key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
30key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
31key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
32key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
33key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
34key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
35key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
36key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
37key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
38key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
/PHP-7.4/ext/sysvshm/tests/
H A Dshutdown_crash_0.phpt2 Shutdown crash when attached/removed same key segment multiple times
10 /*$key = ftok(__FILE__, 't');
11 var_dump($key);*/
12 $key = 42;
14 var_dump($s = shm_attach($key, 1024));
16 var_dump($s = shm_attach($key, 1024));
/PHP-7.4/Zend/
H A Dzend_hash.h92 zend_string *key; member
356 ZEND_HANDLE_NUMERIC_STR(ZSTR_VAL(key), ZSTR_LEN(key), idx)
986 _key = _p->key;
991 _key = _p->key;
1000 _key = _p->key; \
1006 _key = _p->key; \
1011 _key = _p->key; \
1017 _key = _p->key; \
1132 p->key = key; in _zend_hash_append_ex()
1158 p->key = key; in _zend_hash_append_ptr_ex()
[all …]
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_hash.h49 const char *key; member
69 const char *key,
76 zend_string *key);
80 zend_string *key);
84 const char *key,
89 const char *key,
94 const char *key,

Completed in 57 milliseconds

12345678910>>...43