/PHP-5.6/ext/mcrypt/tests/ |
H A D | mcrypt_rijndael128_256BitKey.phpt | 12 * 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 D | mcrypt_ecb_3des_encrypt.phpt | 14 * 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 D | mcrypt_encrypt_3des_ecb.phpt | 12 * 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 D | dba_cdb.c | 142 # 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 D | bug68128-USE_KEY.phpt | 6 $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 D | arrayObject_exchangeArray_basic2.phpt | 8 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 D | CallbackFilterIteratorTest.phpt | 7 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 D | iterator_008.phpt | 23 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 D | RecursiveCallbackFilterIteratorTest.phpt | 7 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 D | key_basic.phpt | 2 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 D | key_variation4.phpt | 2 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 D | bug61730.phpt | 9 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 D | array_walk_basic2.phpt | 16 /* 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 D | array_walk_recursive_basic2.phpt | 16 /* 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 D | bug12776.phpt | 6 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 D | bug14580.phpt | 2 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 D | bug37083.phpt | 29 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 30 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 31 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 32 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 33 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 34 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 35 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 36 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 37 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 38 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
|
/PHP-5.6/ext/openssl/tests/ |
H A D | openssl_public_decrypt_basic.phpt | 8 $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 D | registersyslog.php | 14 $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 D | bug39036.phpt | 2 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 D | fstat_variation8.phpt | 13 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 D | zend_accelerator_hash.c | 91 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 D | bug48557.phpt | 24 <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 D | dbareader.inc | 21 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 D | inifile.h | 34 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);
|