/PHP-7.4/ext/standard/tests/array/ |
H A D | uasort_variation3.phpt | 54 // default key 55 1, //expecting: default key 0, value will be replaced by 'FALSE' 65 'key' => 5, //single quoted key 66 "two" => 4, //double quoted key 69 " " => 0, // space as key 81 // binary key 126 ["key"]=>
|
H A D | usort_variation3.phpt | 50 'key' => 5, //single quoted key 51 "two" => 4, //double quoted key 52 " " => 0, // space as key 61 // binary key 69 // default key
|
H A D | bug35022.phpt | 2 Bug #35022 (Regression in the behavior of key/current functions) 9 echo key($state) . " => " . current($state) . "\n"; 14 var_dump( key($state), current($state) );
|
H A D | array_walk_variation4.phpt | 17 /* Prototype : callback(mixed $value, mixed $key) 19 * $key - keys in given 'input' array 22 function callback($value, $key) 26 var_dump($key); // key
|
H A D | array_flip_variation2.phpt | 6 * Description: Return array with key <-> value flipped 30 // default key 31 'one', //expected: default key 0, value will be replaced by 'bool_key4' 41 'key' => 'string_key1', 57 // binary key 87 string(3) "key"
|
/PHP-7.4/tests/lang/ |
H A D | foreachLoopIterator.001.phpt | 34 public function key() { 87 --> MealIterator::key (0) 92 --> MealIterator::key (1) 97 --> MealIterator::key (2) 109 --> MealIterator::key (0) 116 --> MealIterator::key (0) 121 --> MealIterator::key (1) 126 --> MealIterator::key (2)
|
H A D | each_binary_safety.phpt | 7 while (list($key, $val) = each($arr)) { 8 echo strlen($key), ': '; 9 echo urlencode($key), ' => ', urlencode($val), "\n";
|
/PHP-7.4/ext/spl/tests/ |
H A D | bug62073.phpt | 7 foreach ($heap as $key => $value) { 8 var_dump($key); 15 var_dump($heap->key());
|
H A D | iterator_012.phpt | 10 echo $it->key() . '=>' . $it->current() . "\n"; 18 foreach($it as $key=>$val) 20 echo "$key=>$val\n";
|
H A D | array_012.phpt | 12 foreach($it as $key => $val) 14 echo "$key=>$val\n"; 34 foreach($it as $key => $val) 36 echo "$key=>$val\n";
|
H A D | bug53515.phpt | 12 foreach ($a as $key => $value) { 13 echo $key . ': ' . (is_null($value) ? 'null' : @"$value") . 14 ' array_key_exists: ' . (array_key_exists($key, $a) ? 'true' : 'false') . 15 ' property_exists: ' . (property_exists($o, $key) ? 'true' : 'false'),"\n";
|
H A D | observer_002.phpt | 20 function key() 22 echo __METHOD__ . "(" . parent::key() . ")\n"; 23 return parent::key(); 90 foreach($this->observers as $key => $observer) 154 MyObjectStorage::key(0) 159 MyObjectStorage::key(1) 164 MyObjectStorage::key(2) 174 MyObjectStorage::key(0) 179 MyObjectStorage::key(1) 195 MyObjectStorage::key(0)
|
H A D | bug74669.phpt | 32 public function key() 34 return $this->iterator->key(); 65 foreach ($container as $key => $value) { 66 echo $key . ' => ' . $value . PHP_EOL; 74 foreach($arObj as $key => $value) { 75 echo $key . ' => ' . $value . PHP_EOL;
|
H A D | iterator_021.phpt | 64 function key() 67 return parent::key(); 116 RecursiveArrayIteratorIterator::key 125 RecursiveArrayIteratorIterator::key 134 RecursiveArrayIteratorIterator::key 140 RecursiveArrayIteratorIterator::key 151 RecursiveArrayIteratorIterator::key 166 RecursiveArrayIteratorIterator::key 174 RecursiveArrayIteratorIterator::key
|
/PHP-7.4/ext/dba/ |
H A D | dba_lmdb.c | 131 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_FETCH_FUNC() 136 k.mv_data = key; in DBA_FETCH_FUNC() 141 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_FETCH_FUNC() 173 k.mv_data = key; in DBA_UPDATE_FUNC() 207 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_EXISTS_FUNC() 212 k.mv_data = key; in DBA_EXISTS_FUNC() 217 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_EXISTS_FUNC() 239 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_DELETE_FUNC() 244 k.mv_data = key; in DBA_DELETE_FUNC() 250 php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc)); in DBA_DELETE_FUNC() [all …]
|
H A D | dba.c | 74 ZEND_ARG_INFO(0, key) 79 ZEND_ARG_INFO(0, key) 85 ZEND_ARG_INFO(0, key) 97 ZEND_ARG_INFO(0, key) 102 ZEND_ARG_INFO(0, key) 108 ZEND_ARG_INFO(0, key) 581 zval *key; in php_dba_update() local 686 key[keylen] = '\0'; in php_dba_open() 1116 char *key, *name; in PHP_FUNCTION() local 1131 if (key[0] == '[' && (name = strchr(key, ']')) != NULL) { in PHP_FUNCTION() [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | bug40705.phpt | 13 var_dump(key($foo)); 15 var_dump(key($foo)); 19 var_dump(key($foo));
|
H A D | isset_str_offset.phpt | 29 var_dump(isset($str[$key = '-1'])); // 3 30 var_dump(isset($str[$key = '-10'])); 31 var_dump(isset($str[$key = '0'])); 32 var_dump(isset($str[$key = '1'])); 33 var_dump(isset($str[$key = '4'])); // 0 34 var_dump(isset($str[$key = '1.5'])); 35 var_dump(isset($str[$key = 'good'])); 36 var_dump(isset($str[$key = '3 and a half']));
|
H A D | empty_str_offset.phpt | 30 var_dump(empty($str[$key = '-1'])); // 3 31 var_dump(empty($str[$key = '-10'])); 32 var_dump(empty($str[$key = '0'])); 33 var_dump(empty($str[$key = '1'])); 34 var_dump(empty($str[$key = '4'])); // 0 35 var_dump(empty($str[$key = '1.5'])); 36 var_dump(empty($str[$key = 'good'])); 37 var_dump(empty($str[$key = '3 and a half']));
|
/PHP-7.4/ext/sodium/tests/ |
H A D | crypto_secretstream.phpt | 14 $key = sodium_crypto_secretstream_xchacha20poly1305_keygen(); 17 $res = sodium_crypto_secretstream_xchacha20poly1305_init_push($key); 24 $stream = sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key); 37 $stream = sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key); 43 $stream = sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_pam_sha256_public_key_ini.phpt | 42 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error)); 45 $key = $row['Value']; 46 if (strlen($key) < 100) { 47 …die(sprintf("skip Server misconfiguration? RSA pub key is suspicious, [%d] %s\n", $link->errno, $l… 53 die(sprintf("skip Cannot create RSA pub key file '%s'", $file)); 55 $key = str_replace("A", "a", $key); 56 $key = str_replace("M", "m", $key); 57 if (strlen($key) != fwrite($fp, $key)) { 58 die(sprintf("skip Failed to create pub key file"));
|
/PHP-7.4/ext/openssl/tests/ |
H A D | bug73711.phpt | 2 Bug #73711: Segfault in openssl_pkey_new when generating DSA or DH key 15 resource(%d) of type (OpenSSL key) 16 resource(%d) of type (OpenSSL key)
|
H A D | bug80747.phpt | 2 Bug #80747: Providing RSA key size < 512 generates key that crash PHP 24 error:%s:key size too small
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionParameter_export_error2.phpt | 13 foreach($params as $key => $value) { 14 ReflectionParameter::export($reflect, $key); 21 foreach($params as $key => $value) { 22 ReflectionParameter::export(42, $key);
|
/PHP-7.4/ext/phar/tests/ |
H A D | phar_oo_004.phpt | 48 function key() 51 return parent::key(); 104 MyDirectoryIterator::key 110 MyDirectoryIterator::key 116 MyDirectoryIterator::key 122 MyDirectoryIterator::key
|