Home
last modified time | relevance | path

Searched refs:key (Results 151 – 175 of 1162) sorted by relevance

12345678910>>...47

/PHP-8.1/ext/dba/tests/
H A Ddba_tcadb.phpt31 "key number 6" written
32 Failed to write "key number 6" 2nd time
36 ["key number 6"]=>
48 "key number 6" written
49 Failed to write "key number 6" 2nd time
53 ["key number 6"]=>
/PHP-8.1/ext/spl/tests/
H A Diterator_039.phpt29 public function key(): mixed
75 NumericArrayIterator::key
81 NumericArrayIterator::key
87 NumericArrayIterator::key
93 NumericArrayIterator::key
107 NumericArrayIterator::key
114 NumericArrayIterator::key
H A DSplFileObject_key_fgets_and_seek.phpt2 SplFileObject verify interactions between seeking, getting the key and fgets
15 ['line' => $file->key(), 'contents' => trim($file->fgets())],
16 ['line' => $file->key(), 'contents' => trim($file->fgets())],
17 ['line' => $file->key(), 'contents' => trim($file->fgets())],
H A Dbug42703.phpt20 public function key(): mixed { return null; }
27 foreach($itit as $key => $value) {
28 echo $key, $value;
36 var_dump($itit->key());
H A Ddit_004.phpt14 var_dump($a->key(), $b->key());
20 var_dump($a->key(), $c->key());
/PHP-8.1/tests/lang/
H A DforeachLoopIterator.001.phpt34 public function key(): mixed {
86 --> MealIterator::key (0)
91 --> MealIterator::key (1)
96 --> MealIterator::key (2)
108 --> MealIterator::key (0)
115 --> MealIterator::key (0)
120 --> MealIterator::key (1)
125 --> MealIterator::key (2)
131 Warning: Undefined array key 3 in %s on line %d
/PHP-8.1/Zend/tests/enum/
H A DoffsetGet-in-const-expr.phpt9 public function offsetGet($key): mixed {
13 public function offsetExists($key): bool {}
14 public function offsetSet($key, $value): void {}
15 public function offsetUnset($key): void {}
/PHP-8.1/ext/standard/tests/array/
H A Darray_key_exists_variation1.phpt2 Test array_key_exists() function : usage variations - Pass different data types as $key arg
6 * Pass different data types as $key argument to array_key_exists() to test behaviour
12 $search = array ('zero', 'key' => 'val', 'two', 10 => 'value');
22 return "key";
28 key
34 // unexpected values to be passed to $key argument
59 /*19*/ "key",
60 'key',
H A Dusort_variation3.phpt45 'key' => 5, //single quoted key
46 "two" => 4, //double quoted key
47 " " => 0, // space as key
56 // binary key
64 // default key
H A Darray_slice_variation7.phpt86 echo "\n-- Iteration $iterator : key type is $type --\n";
99 -- Iteration 1 : key type is int --
123 -- Iteration 2 : key type is null uppercase --
135 -- Iteration 3 : key type is null lowercase --
147 -- Iteration 4 : key type is bool lowercase --
163 -- Iteration 5 : key type is bool uppercase --
179 -- Iteration 6 : key type is empty double quotes --
191 -- Iteration 7 : key type is empty single quotes --
203 -- Iteration 8 : key type is string --
223 -- Iteration 9 : key type is undefined --
[all …]
/PHP-8.1/ext/dom/tests/
H A Dbug80332_1.phpt17 function test($span, $key) {
18 $key_formatted = match ($key) {
22 default => is_string($key) ? "'$key'" : $key,
24 echo "Attribute [{$key_formatted}] name: ", $span->attributes[$key]->nodeName ?? '/', "\n";
25 echo "Attribute [{$key_formatted}] value: ", $span->attributes[$key]->nodeValue ?? '/', "\n";
26 … echo "Attribute [{$key_formatted}] isset: ", isset($span->attributes[$key]) ? "yes" : "no", "\n";
/PHP-8.1/ext/session/
H A Dmod_files.c114 key_len = strlen(key); in ps_files_path_create()
120 p = key; in ps_files_path_create()
130 memcpy(buf + n, key, key_len); in ps_files_path_create()
170 if (php_session_valid_key(key) == FAILURE) { in ps_files_open()
180 data->lastkey = estrdup(key); in ps_files_open()
236 ps_files_open(data, ZSTR_VAL(key)); in ps_files_write()
345 if (!key || !ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_key_exists()
479 ps_files_open(data, ZSTR_VAL(key)); in PS_READ_FUNC()
550 return ps_files_write(data, key, val); in PS_WRITE_FUNC()
582 return ps_files_write(data, key, val); in PS_UPDATE_TIMESTAMP_FUNC()
[all …]
/PHP-8.1/ext/standard/
H A Dassert.c213 zend_string *key; in PHP_FUNCTION() local
230 key = zend_string_init("assert.active", sizeof("assert.active")-1, 0); in PHP_FUNCTION()
231 zend_alter_ini_entry_ex(key, value_str, PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0); in PHP_FUNCTION()
232 zend_string_release_ex(key, 0); in PHP_FUNCTION()
246 key = zend_string_init("assert.bail", sizeof("assert.bail")-1, 0); in PHP_FUNCTION()
248 zend_string_release_ex(key, 0); in PHP_FUNCTION()
262 key = zend_string_init("assert.warning", sizeof("assert.warning")-1, 0); in PHP_FUNCTION()
264 zend_string_release_ex(key, 0); in PHP_FUNCTION()
297 key = zend_string_init("assert.exception", sizeof("assert.exception")-1, 0); in PHP_FUNCTION()
298 zend_alter_ini_entry_ex(key, val, PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0); in PHP_FUNCTION()
[all …]
H A Dvar.c46 PHPWRITE(ZSTR_VAL(key), ZSTR_LEN(key)); in php_array_element_dump()
71 PHPWRITE(ZSTR_VAL(key), ZSTR_LEN(key)); in php_object_property_dump()
95 zend_string *key; in php_var_dump() local
178 if (key) { in php_var_dump()
239 PHPWRITE(ZSTR_VAL(key), ZSTR_LEN(key)); in zval_array_element_dump()
283 zend_string *key; in php_debug_zval_dump() local
364 if (key) { in php_debug_zval_dump()
485 zend_string *key; in php_var_export_ex() local
663 zend_ulong key; in php_add_var_hash() local
946 if (!key) { in php_var_serialize_nested_data()
[all …]
/PHP-8.1/ext/pgsql/tests/
H A D80_bug14383.phpt35 "key number 6" written
36 Failed to write "key number 6" 2nd time
40 ["key number 6"]=>
52 "key number 6" written
53 Failed to write "key number 6" 2nd time
57 ["key number 6"]=>
/PHP-8.1/ext/openssl/tests/
H A Dopenssl_private_decrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
9 $pubkey = "file://" . __DIR__ . "/public.key";
34 Warning: openssl_private_decrypt(): key parameter is not a valid private key in %s on line %d
39 Key array must be of the form array(0 => key, 1 => phrase)
H A Dbug71917.phpt12 $publicKey = "file://" . __DIR__ . "/public.key";
13 $privateKey = "file://" . __DIR__ . "/private_rsa_1024.key";
24 // works - key of 16 bytes
26 // fails - key of 15 bytes
/PHP-8.1/Zend/tests/
H A Dbug68215.phpt29 foreach ($child AS $key => $fruit)
31 if (!is_numeric($key))
34 unset($child[$key]);
42 foreach ($arr AS $key => $fruit)
51 unset($arr[$key]);
H A Dbug79947.phpt6 $key = [];
8 $array[$key] += [$key];
H A Dforeach_list_003.phpt2 foreach with list key
8 foreach($array as list($key) => list(list(), $a)) {
13 Fatal error: Cannot use list as key element in %sforeach_list_003.php on line %d
/PHP-8.1/ext/session/tests/
H A Dsession_set_save_handler_class_001.phpt31 public function read($key): string|false {
34 return parent::read($key);
36 public function write($key, $data): bool {
39 return parent::write($key, $data);
55 public function validateId($key): bool {
61 // return parent::validateSid($key);
63 public function updateTimestamp($key, $data): bool {
66 return parent::write($key, $data);
69 // return parent::updateTimestamp($key, $data);
/PHP-8.1/ext/simplexml/tests/
H A Dkey_error.phpt2 SimpleXML: invoking key() after the iterator has already been consumed
18 $sxe->key();
24 var_dump($sxe->key(), $sxe->current());
28 $sxe->key();
H A Dbug46048.phpt9 <key>value</key>
23 [key] => value
/PHP-8.1/ext/date/tests/
H A Ddate_sun_info_003.phpt9 foreach ($sun_info as $key => $elem ) {
10 echo "$key: " . date("H:i:s", $elem) . "\n";
16 foreach ($sun_info as $key => $elem ) {
17 echo "$key: " . date("H:i:s", $elem) . "\n";
/PHP-8.1/ext/sysvshm/tests/
H A D003.phpt13 $key = ftok(__DIR__."/003.phpt", 'q');
15 $s = shm_attach($key);
35 $key = ftok(__DIR__."/003.phpt", 'q');
36 $s = shm_attach($key);

Completed in 123 milliseconds

12345678910>>...47