Home
last modified time | relevance | path

Searched refs:key (Results 76 – 100 of 1173) sorted by relevance

12345678910>>...47

/PHP-5.6/tests/classes/
H A Diterators_006.phpt22 return $this->key !== NULL;
25 function key() {
26 return $this->key;
34 list($this->key, $this->current) = each($this->array);
35 // list($key, $current) = each($this->array);
36 // $this->key = $key;
57 #var_dump($array->key());
/PHP-5.6/ext/standard/tests/array/
H A Darray_walk_object2.phpt17 * Prototype : callback(mixed $value, mixed $key, int $addvalue
19 * $key - keys in given input array
23 function callback_private($value, $key, $addValue)
27 echo "key : ";
28 var_dump($key);
31 function callback_public($value, $key)
36 function callback_protected($value, $key)
84 key : int(0)
86 key : int(1)
88 key : int(2)
[all …]
H A Darray_walk_recursive_object2.phpt17 * Prototype : callback(mixed $value, mixed $key, int $addvalue
19 * $key - keys in given input array
23 function callback_private($value, $key, $addValue)
27 echo "key : ";
28 var_dump($key);
31 function callback_public($value, $key)
36 function callback_protected($value, $key)
86 key : int(0)
88 key : int(1)
90 key : int(1)
[all …]
H A Deach_variation2.phpt110 foreach($inputs as $key => $input) {
132 ["key"]=>
144 ["key"]=>
156 ["key"]=>
168 ["key"]=>
180 ["key"]=>
195 ["key"]=>
209 ["key"]=>
221 ["key"]=>
233 ["key"]=>
[all …]
H A Darray_walk_variation6.phpt20 * $key - key from key/value pair of the array
24 function for_numeric($value, $key, $user_data)
28 var_dump($key);
36 * $key - keys in given input array
37 * Description : Function appends key to the value
39 function for_string($value, $key)
43 var_dump($key);
48 /* Prototype : for_mixed( mixed $value, mixed $key)
50 * $key - keys in given input array
53 function for_mixed($value, $key)
[all …]
H A Darray_walk_recursive_variation6.phpt20 * $key - key from key/value pair of the array
24 function for_numeric($value, $key, $user_data)
28 var_dump($key);
36 * $key - keys in given input array
37 * Description : Function appends key to the value
39 function for_string($value, $key)
43 var_dump($key);
50 * $key - keys in given input array
53 function for_mixed($value, $key)
57 var_dump($key);
[all …]
H A Dkey_variation2.phpt2 Test key() function : usage variations
5 /* Prototype : mixed key(array $array_arg)
6 * Description: Return the key of the element currently pointed to by the internal array pointer
11 * Pass arrays where keys are different data types as $array_arg to key() to test behaviour
14 echo "*** Testing key() : usage variations ***\n";
95 // loop through each element of $inputs to check the behavior of key()
97 foreach($inputs as $key => $input) {
98 echo "\n-- Iteration $iterator : $key data --\n";
99 while (key($input) !== NULL) {
100 var_dump(key($input));
[all …]
H A Darray_key_exists_object2.phpt5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
33 echo "\$key = var1:\n";
35 echo "\$key = var2:\n";
37 echo "\$key = var3:\n";
44 echo "\$key = var3:\n";
56 $key = var1:
58 $key = var2:
60 $key = var3:
73 $key = var3:
H A Darray_flip_variation5.phpt6 * Description: Return array with key <-> value flipped
16 // array with numeric key repeatition
20 // array with string key repeatition
21 $input = array("key" => 1, "two" => 'TWO', 'three' => 3, 'key' => "FOUR");
24 // array with bool key repeatition
28 // array with null key repeatition
54 string(3) "key"
/PHP-5.6/ext/dba/tests/
H A Ddba_handler.inc29 echo dba_exists("key$i", $db_file) ? "Y" : "N";
49 if (dba_insert("key number 6", "The 6th value", $db_writer)) {
50 echo '"key number 6" written' . "\n";
52 echo 'Failed to write "key number 6"' . "\n";
55 echo '"key number 6" written 2nd time' . "\n";
57 echo 'Failed to write "key number 6" 2nd time' . "\n";
62 echo dba_fetch("key number 6", $db_writer)."\n";
69 $key = dba_firstkey($db_file);
71 while($key) {
72 $res[$key] = dba_fetch($key, $db_file);
[all …]
/PHP-5.6/ext/mcrypt/tests/
H A Dmcrypt_cbc_3des_encrypt.phpt12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv
38 echo "\n--- testing different key lengths\n";
39 foreach ($keys as $key) {
40 echo "\nkey length=".strlen($key)."\n";
41 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv)));
44 $key = b'123456789012345678901234';
55 --- testing different key lengths
57 key length=8
64 key length=20
71 key length=24
[all …]
H A Dmcrypt_decrypt_3des_ecb.phpt11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i…
12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
49 echo "\n--- testing different key lengths\n";
55 $key = b'123456789012345678901234';
59 special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
70 --- testing different key lengths
72 key length=8
77 key length=20
82 key length=24
85 key length=26
H A Dmcrypt_ecb_3des_decrypt.phpt13 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
14 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv
52 echo "\n--- testing different key lengths\n";
58 $key = b'123456789012345678901234';
62 special_var_dump(mcrypt_ecb($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i]));
73 --- testing different key lengths
75 key length=8
80 key length=20
85 key length=24
88 key length=26
H A Dmcrypt_rijndael128_128BitKey.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
52 foreach ($keys as $key) {
53 echo "\nkey length=".strlen($key)."\n";
60 $key = b'1234567890123456';
75 --- testing different key lengths
77 key length=0
87 key length=0
97 key length=8
[all …]
/PHP-5.6/ext/standard/tests/file/
H A Dfile_variation.phpt37 $key = "SEARCH_KEY";
38 fwrite( $file_handle, (binary)"The key string to be searched is SEARCH_KEY\nLine without key string…
41 echo "File contents in array form Before replacement of the key\n";
46 if( !strstr( $line, $key ) )
49 echo "File contents in array form After replacement of the key\n";
141 File contents in array form Before replacement of the key
144 string(44) "The key string to be searched is SEARCH_KEY
147 string(24) "Line without key string
150 string(43) "The key string to be searched is SEARCH_KEY"
152 File contents in array form After replacement of the key
[all …]
/PHP-5.6/ext/openssl/tests/
H A Dopenssl_verify_basic.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private_rsa_1024.key";
9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
22 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
25 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
H A Dopenssl_x509_check_private_key_basic.phpt11 $fp = fopen(dirname(__FILE__) . "/private_rsa_1024.key","r");
16 $key = "file://" . dirname(__FILE__) . "/private_rsa_1024.key";
18 var_dump(openssl_x509_check_private_key($cert, $key));
19 var_dump(openssl_x509_check_private_key("", $key));
/PHP-5.6/ext/spl/tests/
H A Diterator_011.phpt8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val)
10 echo "$key=>$val\n";
18 foreach($it as $val=>$key)
20 echo "$val=>$key\n";
29 foreach($it as $val=>$key)
31 echo "$val=>$key\n";
H A Diterator_018.phpt8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val)
10 echo "$key=>$val\n";
18 foreach($it as $val=>$key)
20 echo "$val=>$key\n";
29 foreach($it as $val=>$key)
31 echo "$val=>$key\n";
H A Dfixedarray_003.phpt11 public function key() {
12 echo "A::key\n";
13 return parent::key();
62 A::key
67 A::key
72 A::key
77 A::key
82 A::key
H A Dbug61527.phpt10 var_dump($ai->key());
17 $ao2->offsetUnset($ai2->key());
21 $ao2->offsetUnset($ai2->key());
22 var_dump($ai2->key());
25 $ao2->offsetUnset($ai2->key());
29 var_dump($ai2->key());
34 var_dump($ai2->key());
42 var_dump($ai2->key());
59 $ao4->offsetUnset($ai4->key());
62 $ao4->offsetUnset($ai4->key());
[all …]
/PHP-5.6/ext/session/
H A Dmod_mm.c54 char key[1]; /* inline key */ member
121 keylen = strlen(key); in ps_sd_new()
131 hv = ps_sd_hash(key, keylen); in ps_sd_new()
139 memcpy(sd->key, key, keylen + 1); in ps_sd_new()
161 slot = ps_sd_hash(sd->key, strlen(sd->key)) & data->hash_max; in ps_sd_destroy()
187 hv = ps_sd_hash(key, strlen(key)); in ps_sd_lookup()
191 if (ret->hv == hv && !strcmp(ret->key, key)) { in ps_sd_lookup()
215 if (!key) { in ps_mm_key_exists()
218 sd = ps_sd_lookup(data, key, 0); in ps_mm_key_exists()
362 if (key) { in PS_READ_FUNC()
[all …]
/PHP-5.6/ext/intl/tests/
H A Dmsgfmt_bug70484.phpt17 echo "$lc string key\n";
27 echo "$lc numeric key\n";
41 de string key
48 de numeric key
55 fr string key
62 fr numeric key
69 en string key
76 en numeric key
83 ru string key
90 ru numeric key
/PHP-5.6/tests/lang/
H A Dforeach_with_references_001.phpt8 foreach($arr as $key => $val) {
9 $val = $key;
14 foreach($arr as $key => &$val) {
15 $val = $key;
/PHP-5.6/ext/opcache/
H A Dzend_accelerator_hash.h49 char *key; member
69 char *key,
76 char *key,
81 char *key,
86 char *key,

Completed in 35 milliseconds

12345678910>>...47