/PHP-7.4/ext/standard/tests/array/ |
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 | 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)); 37 Pass float as $key: 45 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 | array_key_first.phpt | 50 First key is : 67 First key is : 80 First key is : 96 First key is : 109 First key is : 122 First key is : 135 First key is : 155 First key is : 167 First key is : 195 First key is : [all …]
|
H A D | array_key_last.phpt | 50 Last key is : 67 Last key is : 80 Last key is : 96 Last key is : 109 Last key is : 122 Last key is : 135 Last key is : 155 Last key is : 167 Last key is : 195 Last key is : [all …]
|
/PHP-7.4/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-7.4/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-7.4/ext/spl/tests/ |
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, …
|
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 | bug61527.phpt | 10 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());
|
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-7.4/Zend/tests/ |
H A D | foreach_004.phpt | 21 function key() {$this->trap(__FUNCTION__); return parent::key();} 25 foreach(['rewind', 'valid', 'key', 'next'] as $trap) { 29 foreach ($obj as $key => &$val) echo "$val\n"; 37 foreach (new IT($trap) as $key => &$val) echo "$val\n"; 44 foreach ((object)new IT($trap) as $key => &$val) echo "$val\n"; 57 key 58 key 59 key
|
H A D | bug76800.phpt | 6 foreach($arr as $key => &$val) { // without & will print both keys 7 echo "See key {$key}\n"; 12 See key 1 13 See key 3
|
/PHP-7.4/ext/dba/tests/ |
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";
|
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]++;
|
/PHP-7.4/ext/openssl/tests/ |
H A D | openssl_private_encrypt_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 9 $pubkey = "file://" . __DIR__ . "/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://" . __DIR__ . "/private_rsa_1024.key"; 9 $pubkey = "file://" . __DIR__ . "/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://" . __DIR__ . "/private_rsa_1024.key"; 9 $pubkey = "file://" . __DIR__ . "/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_x509_verify.phpt | 11 $fp = fopen(__DIR__ . "/public.key","r"); 16 $key = "file://" . __DIR__ . "/public.key"; 17 $wrongKey = "file://" . __DIR__ . "/public_rsa_2048.key"; 19 var_dump(openssl_x509_verify($cert, $key)); 20 var_dump(openssl_x509_verify("", $key));
|
H A D | openssl_pkey_get_details_basic.phpt | 2 openssl_pkey_get_details() with EC key 10 $key = openssl_pkey_get_private("file://" . __DIR__ . "/private_ec.key"); 12 print_r(openssl_pkey_get_details($key)); 18 [key] => -----BEGIN PUBLIC KEY-----%a
|
/PHP-7.4/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-7.4/ext/com_dotnet/ |
H A D | com_iterator.c | 33 zend_ulong key; member 77 ZVAL_NULL(key); in com_iter_get_key() 79 ZVAL_LONG(key, I->key); in com_iter_get_key() 100 I->key++; in com_iter_move_forwards() 103 I->key = (zend_ulong)-1; in com_iter_move_forwards() 109 I->key = (zend_ulong)-1; in com_iter_move_forwards() 112 I->key++; in com_iter_move_forwards() 114 I->key = (zend_ulong)-1; in com_iter_move_forwards() 191 I->key = bound; in php_com_iter_get() 196 I->key = (zend_ulong)-1; in php_com_iter_get() [all …]
|
/PHP-7.4/tests/classes/ |
H A D | constants_basic_004.phpt | 14 const KEY = "key"; 47 ["key"]=> 51 ["key"]=> 55 ["key"]=> 59 ["key"]=> 63 ["key"]=> 71 ["key"]=> 78 ["key"]=> 85 ["key"]=> 90 ["key"]=> [all …]
|
/PHP-7.4/ext/sodium/tests/ |
H A D | crypto_secretbox.phpt | 8 $key = sodium_crypto_secretbox_keygen(); 10 $a = sodium_crypto_secretbox('test', $nonce, $key); 11 $x = sodium_crypto_secretbox_open($a, $nonce, $key); 13 $y = sodium_crypto_secretbox_open("\0" . $a, $nonce, $key); 17 sodium_crypto_secretbox('test', substr($nonce, 1), $key);
|