/PHP-7.4/ext/hash/ |
H A D | hash_gost.c | 39 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 D | key_basic.phpt | 2 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 D | key_variation4.phpt | 2 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 D | bug14580.phpt | 2 Bug #14580 (key() not binary safe) 6 $key = key($arr); 7 echo strlen($key), ': '; 8 echo urlencode($key), "\n";
|
H A D | bug61730.phpt | 9 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 D | bug12776.phpt | 6 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 D | array_walk_basic2.phpt | 16 /* 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 D | crypto_aead.phpt | 14 $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 D | crypto_kdf.phpt | 7 $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 D | crypto_stream.phpt | 8 $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 D | arrayObject_exchangeArray_basic2.phpt | 8 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 D | CallbackFilterIteratorTest.phpt | 7 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 D | iterator_008.phpt | 23 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 D | inifile.h | 32 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 D | bug39036.phpt | 2 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 D | bug79793.phpt | 6 $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 D | openssl_public_decrypt_basic.phpt | 8 $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 D | openssl_free_key.phpt | 10 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 D | cipher_tests.inc | 5 '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 D | mod_user_class.c | 96 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 D | fstat_variation8.phpt | 13 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 D | bug37083.phpt | 29 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 30 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 31 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 32 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 33 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 34 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 35 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 36 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 37 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 38 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
|
/PHP-7.4/ext/sysvshm/tests/ |
H A D | shutdown_crash_0.phpt | 2 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 D | zend_hash.h | 92 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 D | zend_accelerator_hash.h | 49 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,
|