/PHP-5.6/ext/spl/tests/ |
H A D | fileobject_001.phpt | 8 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());
|
H A D | array_013.phpt | 16 foreach($it as $key => $val) 18 echo "$key=>$val\n"; 26 foreach(new NoRewindIterator($it) as $key => $val) 28 echo "$key=>$val\n"; 45 foreach($it as $key => $val) 47 echo "$key=>$val\n"; 55 foreach(new NoRewindIterator($it) as $key => $val) 57 echo "$key=>$val\n";
|
H A D | fixedarray_019.phpt | 22 public function key() { 23 echo "key\n"; 24 return parent::key(); 38 key 43 key 48 key
|
/PHP-5.6/ext/standard/tests/array/ |
H A D | array_key_exists_variation3.phpt | 5 /* 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 …]
|
H A D | key_variation3.phpt | 2 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 14 echo "*** Testing key() : usage variations ***\n"; 19 var_dump(key($array1)); 29 var_dump(key($array1)); 31 var_dump(key($array2)); 35 *** Testing key() : usage variations ***
|
H A D | each_variation3.phpt | 118 ["key"]=> 130 ["key"]=> 142 ["key"]=> 154 ["key"]=> 166 ["key"]=> 178 ["key"]=> 190 ["key"]=> 202 ["key"]=> 214 ["key"]=> 226 ["key"]=> [all …]
|
H A D | array_walk_basic1.phpt | 15 /* Prototype : test_print(mixed $item, mixed $key) 16 * Parameters : item - item in key/item pair 17 * key - key in key/item pair 20 function test_print($item, $key) 25 var_dump($key); // key 28 function with_userdata($item, $key, $user_data) 33 var_dump($key); // key
|
H A D | array_walk_recursive_basic1.phpt | 15 /* Prototype : test_print(mixed $item, mixed $key) 16 * Parameters : item - item in key/item pair 17 * key - key in key/item pair 20 function test_print($item, $key) 25 var_dump($key); // key 28 function with_userdata($item, $key, $user_data) 33 var_dump($key); // key
|
/PHP-5.6/ext/mcrypt/tests/ |
H A D | mcrypt_encrypt_3des_cbc.phpt | 12 * 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'123456789012345678901234'; 64 --- testing different key lengths 66 key length=8 71 key length=20 76 key length=24 [all …]
|
/PHP-5.6/ext/openssl/tests/ |
H A D | openssl_private_encrypt_basic.phpt | 8 $privkey = "file://" . dirname(__FILE__) . "/private_rsa_1024.key"; 9 $pubkey = "file://" . dirname(__FILE__) . "/public.key"; 30 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d 33 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d 36 Warning: openssl_private_encrypt(): key param is not a valid private key in %s on line %d
|
H A D | openssl_public_encrypt_basic.phpt | 8 $privkey = "file://" . dirname(__FILE__) . "/private_rsa_1024.key"; 9 $pubkey = "file://" . dirname(__FILE__) . "/public.key"; 30 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d 33 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d 36 Warning: openssl_public_encrypt(): key parameter is not a valid public key in %s on line %d
|
H A D | bug25614.phpt | 2 openssl: get public key from generated private key 6 if (!@openssl_pkey_new()) die("skip cannot create private key"); 14 Warning: openssl_pkey_get_public(): Don't know how to get public key from this private key %s
|
H A D | openssl_private_decrypt_basic.phpt | 8 $privkey = "file://" . dirname(__FILE__) . "/private_rsa_1024.key"; 9 $pubkey = "file://" . dirname(__FILE__) . "/public.key"; 28 Warning: openssl_private_decrypt(): key parameter is not a valid private key in %s on line %d 34 Warning: openssl_private_decrypt(): key array must be of the form array(0 => key, 1 => phrase) in %… 36 Warning: openssl_private_decrypt(): key parameter is not a valid private key in %s on line %d
|
H A D | openssl_pkey_get_details_basic.phpt | 2 openssl_pkey_get_details() with EC key 10 $key = openssl_pkey_get_private('file://' . dirname(__FILE__) . '/private_ec.key'); 12 print_r(openssl_pkey_get_details($key)); 18 [key] => -----BEGIN PUBLIC KEY-----%a
|
H A D | bug61930.phpt | 2 Bug #61930: openssl corrupts ssl key resource when using openssl_get_publickey() 17 $key = openssl_get_publickey($cert); 18 var_dump(openssl_get_publickey($key)); 19 var_dump(openssl_verify($data, base64_decode($sig), $key)); 22 resource(%d) of type (OpenSSL key)
|
/PHP-5.6/ext/com_dotnet/ |
H A D | com_iterator.c | 35 ulong key; member 82 ZVAL_NULL(key); in com_iter_get_key() 84 ZVAL_LONG(key, I->key); in com_iter_get_key() 105 I->key++; in com_iter_move_forwards() 108 I->key = (ulong)-1; in com_iter_move_forwards() 114 I->key = (ulong)-1; in com_iter_move_forwards() 117 I->key++; in com_iter_move_forwards() 119 I->key = (ulong)-1; in com_iter_move_forwards() 195 I->key = bound; in php_com_iter_get() 200 I->key = (ulong)-1; in php_com_iter_get() [all …]
|
/PHP-5.6/ext/dba/tests/ |
H A D | dba_cdb_read.phpt | 14 // read key sequence 23 // display number of entries and key existence 43 $key = substr($keys, $i, 1); 44 $skip[$key] = 0; 45 echo dba_fetch($key, $db_file); 49 $key = substr($keys, $i, 1); 50 echo dba_fetch($key, $skip[$key], $db_file); 51 $skip[$key]++;
|
H A D | bug65708.phpt | 2 Bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write) 16 $key = 1; 17 $copy = $key; 19 echo gettype($key)."\n"; 22 dba_exists($key, $db); 24 echo gettype($key)."\n";
|
/PHP-5.6/tests/lang/ |
H A D | bug24783.phpt | 2 Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)") 7 foreach ($arr as $key => $val) { 8 echo strlen($key), ': '; 9 echo urlencode($key), ' => ', urlencode($val), "\n";
|
/PHP-5.6/tests/classes/ |
H A D | constants_basic_004.phpt | 14 const KEY = "key"; 48 ["key"]=> 52 ["key"]=> 56 ["key"]=> 60 ["key"]=> 64 ["key"]=> 72 ["key"]=> 79 ["key"]=> 86 ["key"]=> 91 ["key"]=> [all …]
|
/PHP-5.6/Zend/tests/generators/ |
H A D | generator_with_keys.phpt | 8 while (null !== $key = key($array)) { 9 yield $key => current($array); 19 foreach (reverse($array) as $key => $value) { 20 echo $key, ' => ', $value, "\n";
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_source_pkware.c | 44 zip_uint32_t key[3]; member 86 ctx->key[0] = KEY0; in zip_source_pkware() 87 ctx->key[1] = KEY1; in zip_source_pkware() 88 ctx->key[2] = KEY2; in zip_source_pkware() 114 tmp = (zip_uint16_t)(ctx->key[2] | 2); in decrypt() 124 ctx->key[0] = (zip_uint32_t)crc32(ctx->key[0] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; in decrypt() 125 ctx->key[1] = (ctx->key[1] + (ctx->key[0] & 0xff)) * 134775813 + 1; in decrypt() 126 b = ctx->key[1] >> 24; in decrypt() 127 ctx->key[2] = (zip_uint32_t)crc32(ctx->key[2] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; in decrypt()
|
/PHP-5.6/ext/spl/examples/ |
H A D | callbackfilteriterator.inc | 24 const USE_KEY = 3; /**< mode: pass key to callback */ 25 const USE_BOTH = 4; /**< mode: pass value and key to callback */ 27 const REPLACE = 0x00000001; /**< flag: pass key/value by reference */ 32 private $key; /**< key value */ 55 $this->key = parent::key(); 72 return (bool) call_user_func($this->callback, &$this->key); 74 return (bool) call_user_func($this->callback, $this->key); 80 return (bool) call_user_func($this->callback, $this->key, $this->current); 85 /** @return current key value */ 86 function key() [all …]
|
/PHP-5.6/ext/session/ |
H A D | mod_user_class.c | 74 char *key, *val; in PHP_METHOD() local 79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD() 83 if (PS(default_mod)->s_read(&PS(mod_data), key, &val, &val_len TSRMLS_CC) == FAILURE) { in PHP_METHOD() 98 char *key, *val; in PHP_METHOD() local 103 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAIL… in PHP_METHOD() 107 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, val_len TSRMLS_CC)); in PHP_METHOD() 115 char *key; in PHP_METHOD() local 120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD() 124 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_destroy(&PS(mod_data), key TSRMLS_CC)); in PHP_METHOD()
|
/PHP-5.6/ext/openssl/ |
H A D | README | 28 2. An X509 resource - public key only 34 array($key, "passphrase") where $key can be a key specified using one of the 58 Parses the key data and returns a key resource identifier. If the key is 64 Extracts the public key from the given certificate or public key and returns 65 a key resource identifier. 226 Creating private key 240 openssl req -new -key /tmp/test.key -out /tmp/test.crt -days 365 -x509 284 openssl_free_key($key); 301 // $key is an encr key resource id if success, else false 306 openssl_free_key($key); [all …]
|