Home
last modified time | relevance | path

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

12345678910>>...50

/php-src/Zend/tests/
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;
21 Undefined array key "foobar"
26 Undefined array key "foobarbaz"
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 Warning: Undefined variable $key in %s on line %d
/php-src/Zend/tests/numeric_strings/
H A Darray_offset.phpt33 Warning: Undefined array key "7.5" in %s on line %d
36 Warning: Undefined array key " 7" in %s on line %d
39 Warning: Undefined array key " 7.5" in %s on line %d
42 Warning: Undefined array key " 7 " in %s on line %d
48 Warning: Undefined array key "7 " in %s on line %d
51 Warning: Undefined array key "7.5 " in %s on line %d
54 Warning: Undefined array key "7str" in %s on line %d
57 Warning: Undefined array key "7.5str" in %s on line %d
78 Warning: Undefined array key "0xA" in %s on line %d
81 Warning: Undefined array key "0b10" in %s on line %d
[all …]
/php-src/ext/sodium/tests/
H A Dcrypto_stream_xchacha20.phpt10 $key = sodium_crypto_stream_xchacha20_keygen();
13 $stream = sodium_crypto_stream_xchacha20($len, $nonce, $key);
16 $stream2 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
19 $stream3 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
21 $key = sodium_crypto_stream_keygen();
22 $stream4 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
31 $stream5 = sodium_crypto_stream_xchacha20_xor($stream, $nonce, $key);
33 $stream6 = sodium_crypto_stream_xchacha20_xor($stream5, $nonce, $key);
54 sodium_crypto_stream_xchacha20(-1, $nonce, $key);
59 sodium_crypto_stream_xchacha20($len, substr($nonce, 1), $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-src/ext/spl/tests/
H A Diterator_013.phpt10 foreach($it as $key=>$val)
12 echo "$key=>$val\n";
19 foreach($it as $key=>$val)
21 echo "$key=>$val\n";
26 foreach($it as $key=>$val)
28 echo "$key=>$val\n";
35 foreach(new NoRewindIterator($it) as $key=>$val)
37 echo "$key=>$val\n";
42 foreach($it as $key=>$val)
44 echo "$key=>$val\n";
H A Dbug68128-USE_KEY.phpt6 $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 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 …]
/php-src/ext/openssl/tests/
H A Dopenssl_pkey_export_basic.phpt2 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 Dopenssl_free_key.phpt10 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 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-src/ext/dba/
H A Ddba_inifile.c56 if (!key) { in DBA_FETCH_FUNC()
60 ini_key = inifile_key_split(ZSTR_VAL(key)); /* keylen not needed here */ in DBA_FETCH_FUNC()
78 if (!key) { in DBA_UPDATE_FUNC()
82 ini_key = inifile_key_split(ZSTR_VAL(key)); /* keylen not needed here */ in DBA_UPDATE_FUNC()
111 if (!key) { in DBA_EXISTS_FUNC()
133 if (!key) { in DBA_DELETE_FUNC()
150 char *result = inifile_key_string(&dba->curr.key); in DBA_FIRSTKEY_FUNC()
153 return key; in DBA_FIRSTKEY_FUNC()
163 if (!dba->curr.key.group && !dba->curr.key.name) { in DBA_NEXTKEY_FUNC()
168 char *result = inifile_key_string(&dba->curr.key); in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_tcadb.c91 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_size); in DBA_FETCH_FUNC()
107 if (tcadbvsiz(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key)) > -1) { in DBA_UPDATE_FUNC()
112 result = tcadbput(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), ZSTR_VAL(val), ZSTR_LEN(val)); in DBA_UPDATE_FUNC()
128 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_len); in DBA_EXISTS_FUNC()
141 return tcadbout(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key)) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
149 zend_string *key = NULL; in DBA_FIRSTKEY_FUNC() local
155 key = zend_string_init(value, value_size, /* persistent */ false); in DBA_FIRSTKEY_FUNC()
159 return key; in DBA_FIRSTKEY_FUNC()
167 zend_string *key = NULL; in DBA_NEXTKEY_FUNC() local
171 key = zend_string_init(value, value_size, /* persistent */ false); in DBA_NEXTKEY_FUNC()
[all …]
/php-src/ext/hash/
H A Dhash_gost.c37 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-src/ext/dba/libinifile/
H A Dinifile.h30 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-src/Zend/tests/weakrefs/
H A Dweakmap_iteration.phpt9 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-src/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-src/ext/standard/tests/array/
H A Dkey_basic.phpt2 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 Dkey_variation4.phpt2 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 …]
/php-src/ext/sysvshm/tests/
H A Dshutdown_crash_0.phpt2 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-src/ext/opcache/
H A Dzend_accelerator_hash.c88 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-src/ext/dom/lexbor/lexbor/core/
H A Dsbst.h20 lxb_char_t key; member
38 const lxb_char_t key) in lexbor_sbst_entry_static_find() argument
41 if (root->key == key) { in lexbor_sbst_entry_static_find()
44 else if (key > root->key) { in lexbor_sbst_entry_static_find()
/php-src/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-src/ext/sqlite3/tests/
H A Dgh11451.phpt8 ->query('SELECT 1 AS key, 2 AS key')
12 ->query('SELECT 0 AS dummy, 1 AS key, 2 AS key')
17 ["key"]=>
23 ["key"]=>

Completed in 36 milliseconds

12345678910>>...50