Home
last modified time | relevance | path

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

12345678910>>...47

/PHP-5.6/ext/mcrypt/tests/
H A Dmcrypt_rijndael128_256BitKey.phpt12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
17 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
22 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv
27 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv
50 foreach ($keys as $key) {
62 --- testing different key lengths
64 key length=20
72 key length=24
76 key length=30
84 key length=32
[all …]
H A Dmcrypt_ecb_3des_encrypt.phpt14 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv
41 echo "\n--- testing different key lengths\n";
42 foreach ($keys as $key) {
43 echo "\nkey length=".strlen($key)."\n";
44 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv)));
47 $key = b"1234567890123456\0\0\0\0\0\0\0\0";
58 --- testing different key lengths
60 key length=8
65 key length=20
70 key length=24
[all …]
H A Dmcrypt_encrypt_3des_ecb.phpt12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
31 echo "\n--- testing different key lengths\n";
32 foreach ($keys as $key) {
33 echo "\nkey length=".strlen($key)."\n";
34 var_dump(bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode)));
37 $key = b'123456789012345678901234';
56 --- testing different key lengths
58 key length=8
63 key length=20
68 key length=24
[all …]
/PHP-5.6/ext/dba/
H A Ddba_cdb.c142 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len TSRMLS_CC) argument
145 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
146 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
250 char *key; in DBA_FIRSTKEY_FUNC() local
273 efree(key); in DBA_FIRSTKEY_FUNC()
274 key = NULL; in DBA_FIRSTKEY_FUNC()
283 return key; in DBA_FIRSTKEY_FUNC()
291 char *key; in DBA_NEXTKEY_FUNC() local
305 efree(key); in DBA_NEXTKEY_FUNC()
306 key = NULL; in DBA_NEXTKEY_FUNC()
[all …]
/PHP-5.6/ext/spl/tests/
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 …]
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
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, …
/PHP-5.6/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 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 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
H A Darray_walk_recursive_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
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 Dbug14580.phpt2 Bug #14580 (key() not binary safe)
6 $key = key($arr);
7 echo strlen($key), ': ';
8 echo urlencode($key), "\n";
/PHP-5.6/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-5.6/ext/openssl/tests/
H A Dopenssl_public_decrypt_basic.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private_rsa_1024.key";
9 $pubkey = "file://" . dirname(__FILE__) . "/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
/PHP-5.6/win32/build/
H A Dregistersyslog.php14 $key = @reg_create_key(HKEY_LOCAL_MACHINE, $PATH, KEY_ALL_ACCESS); variable
16 if (!$key)
17 $key = reg_open_key(HKEY_LOCAL_MACHINE, $PATH, KEY_ALL_ACCESS); variable
19 if ($key) {
20 reg_set_value($key, "TypesSupported", REG_DWORD, 7) or die("Types");
21 reg_set_value($key, "EventMessageFile", REG_SZ, $dll) or die("EventMessageFile");
/PHP-5.6/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
/PHP-5.6/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-5.6/ext/opcache/
H A Dzend_accelerator_hash.c91 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_update()
102 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_update()
139 entry->key = key; in zend_accel_hash_update()
149 void* zend_accel_hash_find(zend_accel_hash *accel_hash, char *key, zend_uint key_length) in zend_accel_hash_find() argument
158 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_find()
168 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find()
192 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_find_entry()
202 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find_entry()
214 int zend_accel_hash_unlink(zend_accel_hash *accel_hash, char *key, zend_uint key_length) in zend_accel_hash_unlink() argument
223 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_unlink()
[all …]
/PHP-5.6/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-5.6/ext/spl/examples/
H A Ddbareader.inc21 private $key = false;
47 $this->key = dba_firstkey($this->db);
57 $this->key = dba_nextkey($this->db);
62 * Fetches the current data if $key is valid
65 if ($this->key !== false) {
66 $this->val = dba_fetch($this->key, $this->db);
81 if ($this->db && $this->key !== false) {
89 * @return Current key.
91 function key() {
92 return $this->key;
/PHP-5.6/ext/dba/libinifile/
H A Dinifile.h34 key_type key; member
48 val_type inifile_fetch(inifile *dba, const key_type *key, int skip TSRMLS_DC);
51 int inifile_delete(inifile *dba, const key_type *key TSRMLS_DC);
52 int inifile_replace(inifile *dba, const key_type *key, const val_type *val TSRMLS_DC);
53 int inifile_append(inifile *dba, const key_type *key, const val_type *val TSRMLS_DC);
57 char * inifile_key_string(const key_type *key);
59 void inifile_key_free(key_type *key);

Completed in 50 milliseconds

12345678910>>...47