/PHP-8.1/ext/openssl/tests/ |
H A D | openssl_pkey_export_basic.phpt | 2 openssl_pkey_export() with EC key 12 $key = openssl_pkey_get_private('file://' . __DIR__ . '/private_ec.key'); 13 var_dump($key); 17 var_dump(openssl_pkey_export($key, $output, NULL, $config_arg)); 20 // Load the private key from the exported pem string 24 // Export key with passphrase 25 openssl_pkey_export($key, $output, 'passphrase', $config_arg); 30 // Read public key 31 $pKey = openssl_pkey_get_public('file://' . __DIR__ . '/public_ec.key'); 33 // The details are the same for a public or private key, expect the private key parameter 'd [all …]
|
H A D | openssl_free_key.phpt | 10 die("skip cannot create private key"); 14 echo "Creating private key\n"; 20 die("failed to create private key"); 27 echo "Export key to file\n"; 31 echo "Load key from file - array syntax\n"; 40 echo "Load key using direct syntax\n"; 64 Creating private key 65 Export key to file 66 Load key from file - array syntax 69 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-8.1/ext/standard/ |
H A D | mail.c | 91 while (len < key->len) { in php_mail_build_headers_check_field_name() 92 if (*(key->val+len) < 33 || *(key->val+len) > 126 || *(key->val+len) == ':') { in php_mail_build_headers_check_field_name() 115 smart_str_append(s, key); in php_mail_build_headers_elem() 121 php_mail_build_headers_elems(s, key, val); in php_mail_build_headers_elem() 144 php_mail_build_headers_elem(s, key, tmp_val); in php_mail_build_headers_elems() 152 zend_string *key; in php_mail_build_headers() local 156 ZEND_HASH_FOREACH_KEY_VAL(headers, idx, key, val) { in php_mail_build_headers() 157 if (!key) { in php_mail_build_headers() 174 PHP_MAIL_BUILD_HEADER_CHECK("cc", s, key, val); in php_mail_build_headers() 176 PHP_MAIL_BUILD_HEADER_CHECK("bcc", s, key, val); in php_mail_build_headers() [all …]
|
/PHP-8.1/ext/spl/tests/ |
H A D | bug68128-USE_KEY.phpt | 6 $arrayIterator = new ArrayIterator(array('key 1' => 'value 1', 'key 2' => ['value 2'])); 7 $regexIterator = new RegexIterator($arrayIterator, '/^key/', RegexIterator::MATCH, RegexIterator::U… 9 foreach ($regexIterator as $key => $value) { 10 var_dump($key, $value); 15 string(5) "key 1" 17 string(5) "key 2"
|
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, …
|
/PHP-8.1/ext/sodium/tests/ |
H A D | crypto_aead.phpt | 15 $key = sodium_crypto_aead_chacha20poly1305_keygen(); 18 $ciphertext = sodium_crypto_aead_chacha20poly1305_encrypt($msg, $ad, $nonce, $key); 19 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $nonce, $key); 22 var_dump(sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, 'x' . $ad, $nonce, $key)); 25 $msg2 = sodium_crypto_aead_chacha20poly1305_decrypt($ciphertext, $ad, $key, $nonce); 38 $key = sodium_crypto_aead_chacha20poly1305_ietf_keygen(); 67 $key = sodium_crypto_aead_xchacha20poly1305_ietf_keygen(); 95 $key = sodium_crypto_aead_aes256gcm_keygen(); 96 $ciphertext = sodium_crypto_aead_aes256gcm_encrypt($msg, $ad, $nonce, $key); 97 $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-8.1/ext/hash/ |
H A D | hash_gost.c | 37 round(tables, key[0], key[1]) \ 38 round(tables, key[2], key[3]) \ 39 round(tables, key[4], key[5]) \ 40 round(tables, key[6], key[7]) \ 41 round(tables, key[0], key[1]) \ 42 round(tables, key[2], key[3]) \ 43 round(tables, key[4], key[5]) \ 44 round(tables, key[6], key[7]) \ 45 round(tables, key[0], key[1]) \ 46 round(tables, key[2], key[3]) \ [all …]
|
/PHP-8.1/ext/dba/libinifile/ |
H A D | inifile.h | 30 key_type key; member 44 val_type inifile_fetch(inifile *dba, const key_type *key, int skip); 47 int inifile_delete(inifile *dba, const key_type *key); 48 int inifile_delete_ex(inifile *dba, const key_type *key, bool *found); 49 int inifile_replace(inifile *dba, const key_type *key, const val_type *val); 50 int inifile_replace_ex(inifile *dba, const key_type *key, const val_type *val, bool *found); 51 int inifile_append(inifile *dba, const key_type *key, const val_type *val); 55 char * inifile_key_string(const key_type *key); 57 void inifile_key_free(key_type *key);
|
/PHP-8.1/Zend/tests/weakrefs/ |
H A D | weakmap_iteration.phpt | 9 foreach ($map as $key => $value) { 10 var_dump($key, $value); 20 foreach ($map as $key => $value) { 21 var_dump($key, $value); 25 foreach ($map as $key => $value) { 26 if (isset($obj1) && $key === $obj1) unset($obj1); 27 var_dump($key, $value); 31 foreach ($map as $key => &$value) { 66 ["key"]=> 74 ["key"]=>
|
/PHP-8.1/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 Warning: Undefined variable $key in %s on line %d
|
/PHP-8.1/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-8.1/ext/sysvshm/tests/ |
H A D | shutdown_crash_0.phpt | 2 Shutdown crash when attached/removed same key segment multiple times 8 /*$key = ftok(__FILE__, 't'); 9 var_dump($key);*/ 10 $key = 42; 12 var_dump($s = shm_attach($key, 1024)); 14 var_dump($s = shm_attach($key, 1024));
|
/PHP-8.1/ext/standard/tests/array/ |
H A D | key_basic.phpt | 2 Test key() function : basic functionality 6 * Test basic functionality of key() 9 echo "*** Testing key() : basic functionality ***\n"; 13 var_dump(key($array)); 17 var_dump(key($array)); 21 var_dump(key($array)); 25 var_dump(key($array)); 28 *** Testing key() : basic functionality ***
|
H A D | key_variation4.phpt | 2 Test key() function : usage variations 6 * Test how key() behaves with muti-dimensional and recursive arrays 9 echo "*** Testing key() : usage variations ***\n"; 14 var_dump(key($multi_array)); 18 var_dump(key($multi_array)); 22 var_dump(key($multi_array)); 27 var_dump(key($multi_array[1])); 35 var_dump(key($multi_array)); 38 var_dump(key($multi_array[3][3][3])); 40 var_dump(key($multi_array[3][3][3][1])); [all …]
|
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 | 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 | 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
|
/PHP-8.1/ext/opcache/ |
H A D | zend_accelerator_hash.c | 88 hash_value = zend_string_hash_val(key); in zend_accel_hash_update() 98 && zend_string_equals(entry->key, key)) { in zend_accel_hash_update() 135 entry->key = key; in zend_accel_hash_update() 147 hash_value = zend_string_hash_val(key); in zend_accel_hash_find_ex() 156 && zend_string_equals(entry->key, key)) { in zend_accel_hash_find_ex() 179 void* zend_accel_hash_find(zend_accel_hash *accel_hash, zend_string *key) in zend_accel_hash_find() argument 181 return zend_accel_hash_find_ex(accel_hash, key, 1); in zend_accel_hash_find() 189 return (zend_accel_hash_entry *)zend_accel_hash_find_ex(accel_hash, key, 0); in zend_accel_hash_find_entry() 192 int zend_accel_hash_unlink(zend_accel_hash *accel_hash, zend_string *key) in zend_accel_hash_unlink() argument 198 hash_value = zend_string_hash_val(key); in zend_accel_hash_unlink() [all …]
|
/PHP-8.1/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-8.1/Zend/ |
H A D | zend_hash.h | 93 zend_string *key; member 394 ZEND_HANDLE_NUMERIC_STR(ZSTR_VAL(key), ZSTR_LEN(key), idx) 1062 _key = _p->key; 1066 _key = _p->key; 1071 _key = _p->key; 1076 _key = _p->key; 1090 _key = _p->key; \ 1095 _key = _p->key; \ 1273 p->key = key; in _zend_hash_append_ex() 1299 p->key = key; in _zend_hash_append_ptr_ex() [all …]
|
/PHP-8.1/ext/intl/tests/ |
H A D | gh7734.phpt | 2 GH-7734 (IntlPartsIterator key is wrong for KEY_LEFT/KEY_RIGHT) 11 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_SEQUENTIAL) as $key => $value) { 12 var_dump($key, $value); 15 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_LEFT) as $key => $value) { 16 var_dump($key, $value); 19 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_RIGHT) as $key => $value) { 20 var_dump($key, $value);
|