/PHP-7.4/ext/standard/tests/array/ |
H A D | bug70250.phpt | 5 $array = ['key' => 'value']; 7 $ref = &$array['key']; 13 $key = "bad"; 19 ["key"]=>
|
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
|
H A D | bug70808.phpt | 6 $arr1 = array("key" => array(0, 1)); 7 $arr2 = array("key" => array(2)); 9 unset($arr1["key"][1]); 17 [key] => Array
|
H A D | array_walk_object2.phpt | 17 * Prototype : callback(mixed $value, mixed $key, int $addvalue 19 * $key - keys in given input array 23 function callback_private($value, $key, $addValue) 27 echo "key : "; 28 var_dump($key); 31 function callback_public($value, $key) 36 function callback_protected($value, $key) 84 key : int(0) 86 key : int(1) 88 key : int(2) [all …]
|
H A D | array_walk_recursive_object2.phpt | 17 * Prototype : callback(mixed $value, mixed $key, int $addvalue 19 * $key - keys in given input array 23 function callback_private($value, $key, $addValue) 27 echo "key : "; 28 var_dump($key); 31 function callback_public($value, $key) 36 function callback_protected($value, $key) 86 key : int(0) 88 key : int(1) 90 key : int(1) [all …]
|
H A D | each_variation3.phpt | 119 ["key"]=> 131 ["key"]=> 143 ["key"]=> 155 ["key"]=> 167 ["key"]=> 179 ["key"]=> 191 ["key"]=> 203 ["key"]=> 215 ["key"]=> 227 ["key"]=> [all …]
|
H A D | array_walk_variation6.phpt | 20 * $key - key from key/value pair of the array 24 function for_numeric($value, $key, $user_data) 28 var_dump($key); 36 * $key - keys in given input array 37 * Description : Function appends key to the value 39 function for_string($value, $key) 43 var_dump($key); 48 /* Prototype : for_mixed( mixed $value, mixed $key) 50 * $key - keys in given input array 53 function for_mixed($value, $key) [all …]
|
H A D | array_walk_recursive_variation6.phpt | 20 * $key - key from key/value pair of the array 24 function for_numeric($value, $key, $user_data) 28 var_dump($key); 36 * $key - keys in given input array 37 * Description : Function appends key to the value 39 function for_string($value, $key) 43 var_dump($key); 50 * $key - keys in given input array 53 function for_mixed($value, $key) 57 var_dump($key); [all …]
|
H A D | array_flip_variation5.phpt | 6 * Description: Return array with key <-> value flipped 16 // array with numeric key repeatition 20 // array with string key repeatition 21 $input = array("key" => 1, "two" => 'TWO', 'three' => 3, 'key' => "FOUR"); 24 // array with bool key repeatition 28 // array with null key repeatition 54 string(3) "key"
|
/PHP-7.4/ext/openssl/tests/ |
H A D | bug61930.phpt | 2 Bug #61930: openssl corrupts ssl key resource when using openssl_get_publickey() 19 $key = openssl_get_publickey($cert); 20 var_dump(openssl_get_publickey($key)); 21 var_dump(openssl_verify($data, base64_decode($sig), $key)); 24 resource(%d) of type (OpenSSL key)
|
H A D | openssl_verify_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 9 $pubkey = "file://" . __DIR__ . "/public.key"; 22 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d 25 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
|
H A D | openssl_x509_check_private_key_basic.phpt | 11 $fp = fopen(__DIR__ . "/private_rsa_1024.key","r"); 16 $key = "file://" . __DIR__ . "/private_rsa_1024.key"; 18 var_dump(openssl_x509_check_private_key($cert, $key)); 19 var_dump(openssl_x509_check_private_key("", $key));
|
/PHP-7.4/Zend/tests/assert/ |
H A D | expect_007.phpt | 10 "key" => "X-HTTP ", 16 …match("~^([a-zA-Z0-9-]+)$~", $data["key"]), new HeaderMalfunctionError("malformed key found at {$n… 19 Fatal error: Uncaught HeaderMalfunctionError: malformed key found at 1 "X-HTTP " in %sexpect_007.ph…
|
/PHP-7.4/ext/sodium/tests/ |
H A D | crypto_auth.phpt | 8 $key = sodium_crypto_auth_keygen(); 9 $mac = sodium_crypto_auth($msg, $key); 12 var_dump(sodium_crypto_auth_verify($mac, $msg, $key)); 25 var_dump(sodium_crypto_auth_verify($mac, $badmsg, $key)); 35 var_dump(sodium_crypto_auth_verify($mac, $badmsg, $key)); 40 var_dump(sodium_crypto_auth_verify($badmac, $msg, $key)); 44 key must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes
|
/PHP-7.4/ext/opcache/ |
H A D | zend_shared_alloc.c | 350 zend_ulong key = (zend_ulong)source; in zend_shared_memdup_size() local 352 key = (key >> 3) | (key << ((sizeof(key) * 8) - 3)); /* key = _rotr(key, 3);*/ in zend_shared_memdup_size() 364 zend_ulong key; in _zend_shared_memdup() local 367 key = (zend_ulong)source; in _zend_shared_memdup() 368 key = (key >> 3) | (key << ((sizeof(key) * 8) - 3)); /* key = _rotr(key, 3);*/ in _zend_shared_memdup() 384 key = (zend_ulong)source; in _zend_shared_memdup() 385 key = (key >> 3) | (key << ((sizeof(key) * 8) - 3)); /* key = _rotr(key, 3);*/ in _zend_shared_memdup() 533 zend_ulong key = (zend_ulong)old; in zend_shared_alloc_register_xlat_entry() local 535 key = (key >> 3) | (key << ((sizeof(key) * 8) - 3)); /* key = _rotr(key, 3);*/ in zend_shared_alloc_register_xlat_entry() 542 zend_ulong key = (zend_ulong)old; in zend_shared_alloc_get_xlat_entry() local [all …]
|
/PHP-7.4/ext/spl/tests/ |
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 | iterator_011.phpt | 8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val) 10 echo "$key=>$val\n"; 18 foreach($it as $val=>$key) 20 echo "$val=>$key\n"; 29 foreach($it as $val=>$key) 31 echo "$val=>$key\n";
|
H A D | iterator_018.phpt | 8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val) 10 echo "$key=>$val\n"; 18 foreach($it as $val=>$key) 20 echo "$val=>$key\n"; 29 foreach($it as $val=>$key) 31 echo "$val=>$key\n";
|
H A D | fixedarray_003.phpt | 13 public function key() { 14 echo "A::key\n"; 15 return parent::key(); 64 A::key 69 A::key 74 A::key 79 A::key 84 A::key
|
/PHP-7.4/tests/lang/ |
H A D | foreach_with_references_001.phpt | 8 foreach($arr as $key => $val) { 9 $val = $key; 14 foreach($arr as $key => &$val) { 15 $val = $key;
|
/PHP-7.4/ext/dba/tests/ |
H A D | dba_handler.inc | 29 echo dba_exists("key$i", $db_file) ? "Y" : "N"; 49 if (dba_insert("key number 6", "The 6th value", $db_writer)) { 50 echo '"key number 6" written' . "\n"; 52 echo 'Failed to write "key number 6"' . "\n"; 55 echo '"key number 6" written 2nd time' . "\n"; 57 echo 'Failed to write "key number 6" 2nd time' . "\n"; 62 echo dba_fetch("key number 6", $db_writer)."\n"; 69 $key = dba_firstkey($db_file); 71 while($key) { 72 $res[$key] = dba_fetch($key, $db_file); [all …]
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | file_variation.phpt | 37 $key = "SEARCH_KEY"; 38 fwrite( $file_handle,"The key string to be searched is SEARCH_KEY\nLine without key string\nThe key… 41 echo "File contents in array form Before replacement of the key\n"; 46 if( !strstr( $line, $key ) ) 49 echo "File contents in array form After replacement of the key\n"; 140 File contents in array form Before replacement of the key 143 string(44) "The key string to be searched is SEARCH_KEY 146 string(24) "Line without key string 149 string(43) "The key string to be searched is SEARCH_KEY" 151 File contents in array form After replacement of the key [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | foreach_003.phpt | 23 function key() {$this->trap(__FUNCTION__); return $this->n;} 28 foreach(['rewind', 'valid', 'key', 'current', 'next'] as $trap) { 32 foreach ($obj as $key => $val) echo "$val\n"; 40 foreach (new IT(3, $trap) as $key => $val) echo "$val\n"; 47 foreach ((object)new IT(2, $trap) as $key => $val) echo "$val\n"; 60 key 61 key 62 key
|
/PHP-7.4/ext/intl/tests/ |
H A D | msgfmt_bug70484.phpt | 15 echo "$lc string key\n"; 25 echo "$lc numeric key\n"; 39 de string key 46 de numeric key 53 fr string key 60 fr numeric key 67 en string key 74 en numeric key 81 ru string key 88 ru numeric key
|