/php-src/ext/spl/tests/ |
H A D | iterator_004.phpt | 30 public function key(): mixed 91 NumericArrayIterator::key 96 NumericArrayIterator::key 101 NumericArrayIterator::key 110 NumericArrayIterator::key 115 NumericArrayIterator::key 120 NumericArrayIterator::key 128 NumericArrayIterator::key 133 NumericArrayIterator::key 138 NumericArrayIterator::key
|
H A D | arrayObject_getIteratorClass_basic1.phpt | 36 function key(): string|int|null { 39 return parent::key(); 48 foreach($ao as $key=>$value) { 49 echo " $key=>$value\n"; 56 foreach($ao as $key=>$value) { 57 echo "$key=>$value\n"; 81 In MyIterator::key() 86 In MyIterator::key() 91 In MyIterator::key()
|
H A D | iterator_014.phpt | 48 function key(): mixed 51 return parent::key(); 80 RecursiveArrayIteratorIterator::key 87 RecursiveArrayIteratorIterator::key 94 RecursiveArrayIteratorIterator::key 99 RecursiveArrayIteratorIterator::key 110 RecursiveArrayIteratorIterator::key 123 RecursiveArrayIteratorIterator::key 130 RecursiveArrayIteratorIterator::key
|
/php-src/ext/opcache/tests/jit/ |
H A D | fetch_dim_r_005.phpt | 19 Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4 21 Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4 23 Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4 25 Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4 27 Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4
|
/php-src/ext/opcache/tests/ |
H A D | ssa_bug_007.phpt | 8 foreach ($properties as $key => $value) { 9 switch ($key) { 12 $docInfo->$key = 1; 16 $docInfo->$key = 2;
|
/php-src/ext/standard/tests/array/ |
H A D | key_variation2.phpt | 2 Test key() function : usage variations 6 * Pass arrays where keys are different data types as $array_arg to key() to test behaviour 9 echo "*** Testing key() : usage variations ***\n"; 78 // loop through each element of $inputs to check the behavior of key() 80 foreach($inputs as $key => $input) { 81 echo "\n-- Iteration $iterator : $key data --\n"; 82 while (key($input) !== NULL) { 83 var_dump(key($input)); 90 *** Testing key() : usage variations ***
|
H A D | array_flip_variation5.phpt | 11 // array with numeric key repeatition 15 // array with string key repeatition 16 $input = array("key" => 1, "two" => 'TWO', 'three' => 3, 'key' => "FOUR"); 19 // array with bool key repeatition 23 // array with null key repeatition 49 string(3) "key"
|
H A D | bug21998.phpt | 8 var_dump(key($a)); 10 var_dump(key($a)); 12 var_dump(key($a)); 14 var_dump(key($a));
|
/php-src/ext/dba/ |
H A D | dba_ndbm.c | 71 gkey.dptr = ZSTR_VAL(key); in DBA_FETCH_FUNC() 72 gkey.dsize = ZSTR_LEN(key); in DBA_FETCH_FUNC() 85 gkey.dptr = ZSTR_VAL(key); in DBA_UPDATE_FUNC() 86 gkey.dsize = ZSTR_LEN(key); in DBA_UPDATE_FUNC() 100 gkey.dptr = ZSTR_VAL(key); in DBA_EXISTS_FUNC() 101 gkey.dsize = ZSTR_LEN(key); in DBA_EXISTS_FUNC() 113 gkey.dptr = ZSTR_VAL(key); in DBA_DELETE_FUNC() 114 gkey.dsize = ZSTR_LEN(key); in DBA_DELETE_FUNC()
|
/php-src/tests/lang/ |
H A D | foreachLoopIteratorAggregate.001.phpt | 33 public function key(): mixed { 69 public function key(): mixed { 169 --> EnglishMealIterator::key (0) 174 --> EnglishMealIterator::key (1) 179 --> EnglishMealIterator::key (2) 188 --> FrenchMealIterator::key (0) 193 --> FrenchMealIterator::key (1) 198 --> FrenchMealIterator::key (2) 203 --> FrenchMealIterator::key (3) 215 --> EnglishMealIterator::key (0) [all …]
|
H A D | foreachLoopIteratorAggregate.003.phpt | 33 public function key(): mixed { 80 --> EnglishMealIterator::key (0) 85 --> EnglishMealIterator::key (1) 90 --> EnglishMealIterator::key (2) 99 --> EnglishMealIterator::key (0) 104 --> EnglishMealIterator::key (1) 109 --> EnglishMealIterator::key (2) 118 --> EnglishMealIterator::key (0) 123 --> EnglishMealIterator::key (1) 128 --> EnglishMealIterator::key (2)
|
/php-src/ext/phar/tests/ |
H A D | phar_buildfromiterator4.phpt | 25 function key(): mixed { 26 echo "key\n"; 27 return key($this->a); 63 key 67 key 71 key 75 key
|
H A D | phar_buildfromiterator6.phpt | 2 Phar::buildFromIterator() iterator, key is int 25 function key(): mixed { 26 echo "key\n"; 27 return key($this->a); 51 key 53 Iterator myIterator returned an invalid key (must return a string)
|
/php-src/ext/json/tests/ |
H A D | bug41504.phpt | 7 var_dump(json_decode('{"":"value", "key":"value"}', true)); 8 var_dump(json_decode('{"key":"value", "":"value"}', true)); 20 ["key"]=> 24 ["key"]=>
|
/php-src/ext/session/ |
H A D | mod_files.c | 113 if (!data || ZSTR_LEN(key) <= data->dirdepth || in ps_files_path_create() 118 p = ZSTR_VAL(key); in ps_files_path_create() 128 memcpy(buf + n, ZSTR_VAL(key), ZSTR_LEN(key)); in ps_files_path_create() 129 n += ZSTR_LEN(key); in ps_files_path_create() 178 data->last_key = zend_string_copy(key); in ps_files_open() 234 ps_files_open(data, key); in ps_files_write() 340 if (!key || !ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_key_exists() 473 ps_files_open(data, key); in PS_READ_FUNC() 544 return ps_files_write(data, key, val); in PS_WRITE_FUNC() 576 return ps_files_write(data, key, val); in PS_UPDATE_TIMESTAMP_FUNC() [all …]
|
/php-src/ext/sysvsem/ |
H A D | sysvsem.c | 174 zend_long key, max_acquire = 1, perm = 0666; in PHP_FUNCTION() local 181 …if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "l|llb", &key, &max_acquire, &perm, &auto_re… in PHP_FUNCTION() 191 semid = semget(key, 3, perm|IPC_CREAT); in PHP_FUNCTION() 193 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", key, strerror(errno)); in PHP_FUNCTION() 225 …WARNING, "Failed acquiring SYSVSEM_SETVAL for key 0x" ZEND_XLONG_FMT ": %s", key, strerror(errno)); in PHP_FUNCTION() 233 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", key, strerror(errno)); in PHP_FUNCTION() 242 …php_error_docref(NULL, E_WARNING, "Failed for key 0x" ZEND_XLONG_FMT ": %s", key, strerror(errno)); in PHP_FUNCTION() 261 sem_ptr->key = key; in PHP_FUNCTION() 289 …ror_docref(NULL, E_WARNING, "SysV semaphore for key 0x%x is not currently acquired", sem_ptr->key); in php_sysvsem_semop() 347 …r_docref(NULL, E_WARNING, "SysV semaphore for key 0x%x does not (any longer) exist", sem_ptr->key); in PHP_FUNCTION() [all …]
|
/php-src/ext/spl/ |
H A D | spl_observer.c | 102 key->key = Z_STR(rv); in spl_object_storage_get_hash() 107 key->key = NULL; in spl_object_storage_get_hash() 114 if (key->key) { in spl_object_storage_free_hash() 115 zend_string_release_ex(key->key, 0); in spl_object_storage_free_hash() 129 if (key->key) { in spl_object_storage_get() 130 return zend_hash_find_ptr(&intern->storage, key->key); in spl_object_storage_get() 213 if (key.key) { in spl_object_storage_attach() 232 if (key.key) { in spl_object_storage_detach() 233 ret = zend_hash_del(&intern->storage, key.key); in spl_object_storage_detach() 420 ZEND_ASSERT(key.key); in spl_object_storage_contains() [all …]
|
/php-src/ext/sysvshm/tests/ |
H A D | 006.phpt | 13 $key = ftok(__FILE__, 't'); 14 $s = shm_attach($key, 1024); 36 Warning: shm_remove_var(): Variable key -10 doesn't exist in %s006.php on line %d 41 Warning: shm_get_var(): Variable key 1 doesn't exist in %s006.php on line %d 44 Warning: shm_remove_var(): Variable key 1 doesn't exist in %s006.php on line %d 47 Warning: shm_get_var(): Variable key 1 doesn't exist in %s006.php on line %d
|
/php-src/ext/phar/tests/tar/ |
H A D | phar_buildfromiterator6.phpt | 2 Phar::buildFromIterator() iterator, key is int tar-based 25 function key(): mixed { 26 echo "key\n"; 27 return key($this->a); 51 key 53 Iterator myIterator returned an invalid key (must return a string)
|
/php-src/ext/phar/tests/zip/ |
H A D | phar_buildfromiterator6.phpt | 2 Phar::buildFromIterator() iterator, key is int zip-based 25 function key(): mixed { 26 echo "key\n"; 27 return key($this->a); 51 key 53 Iterator myIterator returned an invalid key (must return a string)
|
/php-src/ext/spl/tests/SplFileObject/ |
H A D | gh8121.phpt | 2 GH-8121 (SplFileObject - seek and key with csv file inconsistent) 15 var_dump($file->key()); 17 var_dump($file->key()); 19 var_dump($file->key()); 21 var_dump($file->key());
|
/php-src/Zend/tests/ |
H A D | bug34467.phpt | 8 function __set ($key, $value) { 9 $this->arr[$key] = $value; 12 function __get ($key) { 13 return $this->arr[$key];
|
H A D | array_offset.phpt | 2 Ensure "undefined offset" notice formats message correctly when undefined key is negative 14 Warning: Undefined array key -1 in %s on line %d 18 Warning: Undefined array key -1 in %s on line %d 20 Warning: Undefined array key -1 in %s on line %d 24 Warning: Undefined array key -1 in %s on line %d
|
/php-src/ext/dom/ |
H A D | html_collection.c | 34 static dom_named_item dom_html_collection_named_item(zend_string *key, zend_object *zobj) in dom_html_collection_named_item() argument 39 if (ZSTR_LEN(key) == 0) { in dom_html_collection_named_item() 61 …Prop(candidate, BAD_CAST "id", NULL)) != NULL && dom_compare_value(attr, BAD_CAST ZSTR_VAL(key))) { in dom_html_collection_named_item() 68 …op(candidate, BAD_CAST "name", NULL)) != NULL && dom_compare_value(attr, BAD_CAST ZSTR_VAL(key))) { in dom_html_collection_named_item() 82 static void dom_html_collection_named_item_into_zval(zval *return_value, zend_string *key, zend_obj… in dom_html_collection_named_item_into_zval() argument 84 dom_named_item named_item = dom_html_collection_named_item(key, zobj); in dom_html_collection_named_item_into_zval() 94 zend_string *key; in PHP_METHOD() local 96 Z_PARAM_STR(key) in PHP_METHOD() 98 dom_html_collection_named_item_into_zval(return_value, key, Z_OBJ_P(ZEND_THIS)); in PHP_METHOD()
|
/php-src/ext/hash/murmur/ |
H A D | PMurHash128.h | 31 void PMurHash128x64_Process(uint64_t ph[2], uint64_t pcarry[2], const void *key, int len); 33 void PMurHash128x64(const void * key, const int len, uint32_t seed, void * out); 36 void PMurHash128x86_Process(uint32_t ph[4], uint32_t pcarry[4], const void *key, int len); 38 void PMurHash128x86(const void * key, const int len, uint32_t seed, void * out);
|