Home
last modified time | relevance | path

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

12345678910>>...46

/PHP-5.5/ext/mcrypt/tests/
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';
58 --- testing different key lengths
60 key length=8
63 key length=20
66 key length=24
[all …]
H A Dmcrypt_encrypt_3des_cbc.phpt12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
22 //test different lengths of key, iv
46 echo "\n--- testing different key lengths\n";
47 foreach ($keys as $key) {
48 echo "\nkey length=".strlen($key)."\n";
52 $key = b'1234567890123456';
64 --- testing different key lengths
66 key length=8
69 key length=20
72 key length=24
[all …]
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'1234567890123456';
55 --- testing different key lengths
57 key length=8
62 key length=20
67 key length=24
[all …]
/PHP-5.5/ext/spl/tests/
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, …
H A Dfileobject_001.phpt8 var_dump($o->key());
11 var_dump($o->key());
13 var_dump($o->key());
15 var_dump($o->key());
17 var_dump($o->key());
19 var_dump($o->key());
21 var_dump($o->key());
23 var_dump($o->key());
25 var_dump($o->key());
/PHP-5.5/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_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 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 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";
H A Darray_key_exists_variation3.phpt5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
12 * Pass floats as $key argument, then cast float values
13 * to integers and pass as $key argument
23 foreach($keys as $key) {
25 echo "Pass float as \$key:\n";
26 var_dump(array_key_exists($key, $search));
28 var_dump(array_key_exists((int)$key, $search));
38 Pass float as $key:
46 Pass float as $key:
[all …]
/PHP-5.5/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.5/ext/openssl/tests/
H A D016.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private.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.5/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.5/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.5/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.5/ext/opcache/
H A Dzend_accelerator_hash.c88 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_update()
96 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_update()
133 entry->key = key; in zend_accel_hash_update()
143 void* zend_accel_hash_find(zend_accel_hash *accel_hash, char *key, zend_uint key_length) in zend_accel_hash_find() argument
149 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_find()
156 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find()
177 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_find_entry()
184 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find_entry()
196 int zend_accel_hash_unlink(zend_accel_hash *accel_hash, char *key, zend_uint key_length) in zend_accel_hash_unlink() argument
202 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_unlink()
[all …]
/PHP-5.5/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.5/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.5/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 56 milliseconds

12345678910>>...46