/PHP-5.3/ext/standard/tests/array/ |
H A D | array_key_exists_variation8.phpt | 117 -- $key arguments are int data: 122 -- $key arguments are float data: 149 -- $key arguments are unset data: 153 -- $key arguments are int data: 189 -- $key arguments are int data: 225 -- $key arguments are int data: 261 -- $key arguments are int data: 297 -- $key arguments are int data: 333 -- $key arguments are int data: 369 -- $key arguments are int data: [all …]
|
H A D | each.phpt | 115 ["key"]=> 126 ["key"]=> 138 ["key"]=> 149 ["key"]=> 161 ["key"]=> 172 ["key"]=> 184 ["key"]=> 194 ["key"]=> 204 ["key"]=> 214 ["key"]=> [all …]
|
H A D | key_error.phpt | 2 Test key() function : error conditions - Pass incorrect number of args 5 /* Prototype : mixed key(array $array_arg) 11 * Pass incorrect number of arguments to key() to test behaviour 14 echo "*** Testing key() : error conditions ***\n"; 17 echo "\n-- Testing key() function with Zero arguments --\n"; 18 var_dump( key() ); 24 var_dump( key($array_arg, $extra_arg) ); 28 *** Testing key() : error conditions *** 30 -- Testing key() function with Zero arguments -- 32 Warning: key() expects exactly 1 parameter, 0 given in %s on line %d [all …]
|
H A D | key_variation1.phpt | 2 Test key() function : usage variations - Pass different data types as $array_arg arg. 5 /* Prototype : mixed key(array $array_arg) 11 * Pass different data types as $array_arg argument to test behaviour of key() 14 echo "*** Testing key() : usage variations ***\n"; 86 // loop through each element of $inputs to check the behavior of key() 90 var_dump( key($input) ); 98 *** Testing key() : usage variations *** 147 Warning: key() expects parameter 1 to be array, null given in %s on line %d 152 Warning: key() expects parameter 1 to be array, null given in %s on line %d 208 Warning: key() expects parameter 1 to be array, null given in %s on line %d [all …]
|
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 …]
|
/PHP-5.3/ext/intl/tests/ |
H A D | collator_get_sort_key.phpt | 60 key: 27292b01070107 62 key: 27292d01070107 64 key: 27272701070107 68 key: 5c0a01050105 70 key: 5901050105 72 key: 0101 74 key: 0101 76 key: 1801050105 78 key: 5701050105 80 key: 3701050105 [all …]
|
/PHP-5.3/ext/dba/libinifile/ |
H A D | inifile.c | 126 return key; in inifile_key_split() 133 if (key->group && *key->group) { in inifile_key_string() 135 spprintf(&result, 0, "[%s]%s", key->group, key->name ? key->name : ""); in inifile_key_string() 251 …if (skip == -1 && dba->next.key.group && dba->next.key.name && !inifile_key_cmp(&dba->next.key, ke… in inifile_fetch() 303 ln.key.group = estrdup(dba->curr.key.group ? dba->curr.key.group : ""); in inifile_nextkey() 307 return ln.key.group || ln.key.name; in inifile_nextkey() 338 if (key->group && strlen(key->group)) { in inifile_find_group() 372 ln.key.group = estrdup(key->group); in inifile_next_group() 426 switch(inifile_key_cmp(&ln.key, key TSRMLS_CC)) { in inifile_filter() 511 if (!value || (key->name && strlen(key->name))) { in inifile_delete_replace_append() [all …]
|
/PHP-5.3/ext/gd/ |
H A D | gdcache.c | 146 int key; member 151 cacheTest( void *map, void *key ) in cacheTest() argument 153 return (((key_value_t *)map)->key == *(int *)key); in cacheTest() 165 map->key = *(int *)key; in cacheFetch() 182 int elem, key; in main() local 186 key = 20; in main() 188 key = 30; in main() 190 key = 40; in main() 192 key = 50; in main() 194 key = 30; in main() [all …]
|
/PHP-5.3/ext/gd/libgd/ |
H A D | gdcache.c | 153 int key; member 159 cacheTest (void *map, void *key) in cacheTest() argument 161 return (((key_value_t *) map)->key == *(int *) key); in cacheTest() 170 map->key = *(int *) key; in cacheFetch() 187 int elem, key; in main() local 191 key = 20; in main() 193 key = 30; in main() 195 key = 40; in main() 197 key = 50; in main() 199 key = 30; in main() [all …]
|
/PHP-5.3/ext/standard/tests/general_functions/ |
H A D | bug47859.phpt | 2 Bug #47859 (parse_ini_file() does not like asterisk (*) in key in the beginning) 5 var_dump(parse_ini_string('*key = "*value"')); 6 var_dump(parse_ini_string('-key = "-value"')); 9 var_dump(parse_ini_string('key* = "value*"')); 10 var_dump(parse_ini_string('key.*.* = "value.*.*"')); 11 var_dump(parse_ini_string('*.*.key = "*.*.value"')); 16 ["*key"]=> 20 ["-key"]=> 28 ["key*"]=> 32 ["key.*.*"]=> [all …]
|
/PHP-5.3/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 68 key length=24 72 key length=30 76 key length=32 [all …]
|
H A D | mcrypt_ecb_3des_encrypt.phpt | 12 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv 39 echo "\n--- testing different key lengths\n"; 40 foreach ($keys as $key) { 41 echo "\nkey length=".strlen($key)."\n"; 42 var_dump(bin2hex(mcrypt_ecb($cipher, $key, $data, $mode, $iv))); 45 $key = b'1234567890123456'; 56 --- testing different key lengths 58 key length=8 61 key length=20 64 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'12345678'; 56 --- testing different key lengths 58 key length=8 61 key length=20 64 key length=24 [all …]
|
/PHP-5.3/ext/hash/tests/ |
H A D | hash_hmac_basic.phpt | 17 $key = 'secret'; 19 echo "adler32: " . hash_hmac('adler32', $content, $key) . "\n"; 20 echo "crc32: " . hash_hmac('crc32', $content, $key) . "\n"; 21 echo "gost: " . hash_hmac('gost', $content, $key) . "\n"; 23 echo "md2: " . hash_hmac('md2', $content, $key) . "\n"; 24 echo "md4: " . hash_hmac('md4', $content, $key) . "\n"; 25 echo "md5: " . hash_hmac('md5', $content, $key) . "\n"; 30 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n"; 31 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n"; 32 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n"; [all …]
|
H A D | hash_hmac_file_basic.phpt | 36 $key = 'secret'; 40 echo "crc32: " . hash_hmac_file('crc32', $file, $key) . "\n"; 41 echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n"; 43 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n"; 44 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n"; 45 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n"; 50 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n"; 51 echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n"; 52 echo "sha384: " . hash_hmac_file('sha384', $file, $key) . "\n"; 53 echo "sha512: " . hash_hmac_file('sha512', $file, $key) . "\n"; [all …]
|
/PHP-5.3/tests/lang/ |
H A D | foreachLoop.009.phpt | 56 key: 0; value: original.0 57 key: 1; value: original.1 60 key: 0; value: original.0 67 key: 3; value: new.0 68 key: 4; value: new.1 69 key: 5; value: new.2 70 key: 6; value: new.3 77 key: 3; value: new.0 78 key: 4; value: new.1 79 key: 5; value: new.2 [all …]
|
/PHP-5.3/ext/mbstring/oniguruma/ |
H A D | st.c | 36 st_data_t key; member 75 #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) argument 76 #define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) argument 287 entry->key = key;\ 319 st_data_t key; 414 if (EQUAL(table, *key, ptr->key)) { 418 *key = ptr->key; 424 if (EQUAL(table, ptr->next->key, *key)) { 429 *key = tmp->key; 457 if ((ptr->key != never) && EQUAL(table, ptr->key, *key)) { [all …]
|
/PHP-5.3/ext/hash/ |
H A D | hash_gost.c | 41 round(key[0], key[1]) \ 42 round(key[2], key[3]) \ 43 round(key[4], key[5]) \ 44 round(key[6], key[7]) \ 45 round(key[0], key[1]) \ 46 round(key[2], key[3]) \ 47 round(key[4], key[5]) \ 48 round(key[6], key[7]) \ 49 round(key[0], key[1]) \ 50 round(key[2], key[3]) \ [all …]
|
/PHP-5.3/ext/openssl/tests/ |
H A D | 001.phpt | 2 OpenSSL private key functions 10 echo "Creating private key\n"; 24 die("failed to create private key"); 31 echo "Export key to file\n"; 35 echo "Load key from file - array syntax\n"; 44 echo "Load key using direct syntax\n"; 69 Creating private key 70 Export key to file 71 Load key from file - array syntax 72 Load key using direct syntax [all …]
|
/PHP-5.3/ext/spl/tests/ |
H A D | iterator_013.phpt | 10 foreach($it as $key=>$val) 12 echo "$key=>$val\n"; 19 foreach($it as $key=>$val) 21 echo "$key=>$val\n"; 26 foreach($it as $key=>$val) 28 echo "$key=>$val\n"; 35 foreach(new NoRewindIterator($it) as $key=>$val) 37 echo "$key=>$val\n"; 42 foreach($it as $key=>$val) 44 echo "$key=>$val\n";
|
H A D | iterator_020.phpt | 10 foreach($it as $key=>$val) 12 echo "$key=>$val\n"; 19 foreach($it as $key=>$val) 21 echo "$key=>$val\n"; 26 foreach($it as $key=>$val) 28 echo "$key=>$val\n"; 35 foreach(new NoRewindIterator($it) as $key=>$val) 37 echo "$key=>$val\n"; 42 foreach($it as $key=>$val) 44 echo "$key=>$val\n";
|
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 …]
|
/PHP-5.3/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.3/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=…
|