/PHP-7.4/ext/date/tests/ |
H A D | date_sun_info_003.phpt | 9 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-7.4/ext/standard/tests/array/ |
H A D | array_key_exists_variation5.phpt | 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 6 * Description: Checks if the given key or index exists in the array 21 echo "\n-- Attempt to match key in sub-array --\n"; 22 // this key is in the sub-array 33 -- Attempt to match key in sub-array --
|
H A D | array_key_exists_basic.phpt | 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 6 * Description: Checks if the given key or index exists in the array 17 $key1 = 'key'; 19 $search = array('one', 'key' => 'value', 'val');
|
H A D | bug61967.phpt | 14 function (&$value, $key) use(&$arr) { 15 var_dump($key); 16 unset($arr[$key]);
|
H A D | array_key_exists_object1.phpt | 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 6 * Description: Checks if the given key or index exists in the array 33 echo "\$key = var1:\n"; 35 echo "\$key = var3:\n"; 42 echo "\$key = var3:\n"; 53 $key = var1: 57 $key = var3: 72 $key = var3:
|
H A D | array_slice_variation7.phpt | 116 -- Iteration 1 : key type is int -- 140 -- Iteration 2 : key type is float -- 160 -- Iteration 3 : key type is extreme floats -- 176 -- Iteration 4 : key type is null uppercase -- 188 -- Iteration 5 : key type is null lowercase -- 200 -- Iteration 6 : key type is bool lowercase -- 216 -- Iteration 7 : key type is bool uppercase -- 232 -- Iteration 8 : key type is empty double quotes -- 256 -- Iteration 10 : key type is string -- 276 -- Iteration 11 : key type is undefined -- [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | bug68215.phpt | 29 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 D | foreach_list_003.phpt | 2 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-7.4/ext/pgsql/tests/ |
H A D | 80_bug14383.phpt | 28 "key number 6" written 29 Failed to write "key number 6" 2nd time 33 ["key number 6"]=> 45 "key number 6" written 46 Failed to write "key number 6" 2nd time 50 ["key number 6"]=>
|
/PHP-7.4/ext/standard/tests/network/ |
H A D | setcookie_error.phpt | 10 // Unrecognized key and no valid keys 12 // Numeric key and no valid keys 14 // Unrecognized key 23 Warning: setcookie(): Unrecognized key 'unknown_key' found in the options array in %s 27 Warning: setcookie(): Numeric key found in the options array in %s 31 Warning: setcookie(): Unrecognized key 'foo' found in the options array in %s
|
/PHP-7.4/ext/session/tests/ |
H A D | session_encode_error2.phpt | 103 Notice: session_encode(): Skipping numeric key 0 in %s on line %d 110 Notice: session_encode(): Skipping numeric key 1 in %s on line %d 131 Notice: session_encode(): Skipping numeric key 10 in %s on line %d 138 Notice: session_encode(): Skipping numeric key -10 in %s on line %d 145 Notice: session_encode(): Skipping numeric key %s in %s on line %d 152 Notice: session_encode(): Skipping numeric key 0 in %s on line %d 159 Notice: session_encode(): Skipping numeric key 0 in %s on line %d 176 Notice: session_encode(): Skipping numeric key 1 in %s on line %d 183 Notice: session_encode(): Skipping numeric key 0 in %s on line %d 190 Notice: session_encode(): Skipping numeric key 1 in %s on line %d [all …]
|
H A D | session_set_save_handler_class_001.phpt | 35 public function read($key) { 38 return parent::read($key); 40 public function write($key, $data) { 43 return parent::write($key, $data); 58 public function validateId($key) { 64 // return parent::validateSid($key); 66 public function updateTimestamp($key, $data) { 69 return parent::write($key, $data); 72 // return parent::updateTimestamp($key, $data);
|
/PHP-7.4/ext/session/ |
H A D | mod_files.c | 116 key_len = strlen(key); in ps_files_path_create() 122 p = key; in ps_files_path_create() 132 memcpy(buf + n, key, key_len); in ps_files_path_create() 172 if (php_session_valid_key(key) == FAILURE) { in ps_files_open() 182 data->lastkey = estrdup(key); in ps_files_open() 238 ps_files_open(data, ZSTR_VAL(key)); in ps_files_write() 347 if (!key || !ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_key_exists() 481 ps_files_open(data, ZSTR_VAL(key)); in PS_READ_FUNC() 552 return ps_files_write(data, key, val); in PS_WRITE_FUNC() 584 return ps_files_write(data, key, val); in PS_UPDATE_TIMESTAMP_FUNC() [all …]
|
/PHP-7.4/ext/openssl/tests/ |
H A D | bug38255.phpt | 2 openssl key from zval leaks 33 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d 35 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d 38 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
|
H A D | bug73478.phpt | 16 printf("Private key:\n%s\n", base64_encode($data['dh']['priv_key'])); 17 printf("Public key:\n%s\n", base64_encode($data['dh']['pub_key'])); 20 Private key: 22 Public key:
|
/PHP-7.4/ext/standard/ |
H A D | http.c | 32 zend_string *key = NULL; in php_url_encode_hash_ex() local 56 ZEND_HASH_FOREACH_KEY_VAL(ht, idx, key, zdata) { in php_url_encode_hash_ex() 68 if (key) { in php_url_encode_hash_ex() 69 prop_name = ZSTR_VAL(key); in php_url_encode_hash_ex() 70 prop_len = ZSTR_LEN(key); in php_url_encode_hash_ex() 77 if (ZSTR_VAL(key)[0] == '\0' && type != NULL) { in php_url_encode_hash_ex() 79 zend_unmangle_property_name_ex(key, &tmp, &prop_name, &prop_len); in php_url_encode_hash_ex() 81 prop_name = ZSTR_VAL(key); in php_url_encode_hash_ex() 82 prop_len = ZSTR_LEN(key); in php_url_encode_hash_ex() 91 if (key) { in php_url_encode_hash_ex() [all …]
|
/PHP-7.4/ext/simplexml/tests/ |
H A D | bug46048.phpt | 9 <key>value</key> 24 [key] => value
|
H A D | bug67572.phpt | 16 foreach($xml as $key => $value) { 17 print "$key = $value ... "; 22 foreach($xml2 as $key => $value) { 23 print "$key = $value ... ";
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 35 char *key; member 87 unlink(ls->key); in fpm_sockets_cleanup() 90 free(ls->key); in fpm_sockets_cleanup() 129 if (key == NULL) { in fpm_sockets_hash_op() 132 key = alloca(INET6_ADDRSTRLEN+10); in fpm_sockets_hash_op() 134 sprintf(key+strlen(key), ":%d", fpm_get_in_port(sa)); in fpm_sockets_hash_op() 141 strcpy(key, sa_un->sun_path); in fpm_sockets_hash_op() 158 if (!strcmp(ls->key, key)) { in fpm_sockets_hash_op() 183 ls->key = strdup(key); in fpm_sockets_hash_op() 464 unlink(ls->key); in fpm_sockets_init_main() [all …]
|
/PHP-7.4/Zend/ |
H A D | zend_ts_hash.c | 90 ZEND_API zval *zend_ts_hash_add(TsHashTable *ht, zend_string *key, zval *pData) in zend_ts_hash_add() argument 95 retval = zend_hash_add(TS_HASH(ht), key, pData); in zend_ts_hash_add() 106 retval = zend_hash_update(TS_HASH(ht), key, pData); in zend_ts_hash_update() 139 retval = zend_hash_add_empty_element(TS_HASH(ht), key); in zend_ts_hash_add_empty_element() 189 ZEND_API int zend_ts_hash_del(TsHashTable *ht, zend_string *key) in zend_ts_hash_del() argument 194 retval = zend_hash_del(TS_HASH(ht), key); in zend_ts_hash_del() 211 ZEND_API zval *zend_ts_hash_find(TsHashTable *ht, zend_string *key) in zend_ts_hash_find() argument 216 retval = zend_hash_find(TS_HASH(ht), key); in zend_ts_hash_find() 329 retval = zend_hash_str_find(TS_HASH(ht), key, len); in zend_ts_hash_str_find() 340 retval = zend_hash_str_update(TS_HASH(ht), key, len, pData); in zend_ts_hash_str_update() [all …]
|
H A D | zend_ts_hash.h | 49 ZEND_API zval *zend_ts_hash_update(TsHashTable *ht, zend_string *key, zval *pData); 50 ZEND_API zval *zend_ts_hash_add(TsHashTable *ht, zend_string *key, zval *pData); 53 ZEND_API zval* zend_ts_hash_add_empty_element(TsHashTable *ht, zend_string *key); 64 ZEND_API int zend_ts_hash_del(TsHashTable *ht, zend_string *key); 68 ZEND_API zval *zend_ts_hash_find(TsHashTable *ht, zend_string *key); 90 ZEND_API zval *zend_ts_hash_str_find(TsHashTable *ht, const char *key, size_t len); 91 ZEND_API zval *zend_ts_hash_str_update(TsHashTable *ht, const char *key, size_t len, zval *pData); 92 ZEND_API zval *zend_ts_hash_str_add(TsHashTable *ht, const char *key, size_t len, zval *pData); 120 static zend_always_inline int zend_ts_hash_exists(TsHashTable *ht, zend_string *key) in zend_ts_hash_exists() argument 122 return zend_ts_hash_find(ht, key) != NULL; in zend_ts_hash_exists()
|
/PHP-7.4/ext/xsl/tests/ |
H A D | xsltprocessor_removeParameter.phpt | 13 $proc->setParameter('', 'key', 'value'); 14 $proc->removeParameter('', 'key'); 15 var_dump($proc->getParameter('', 'key'));
|
/PHP-7.4/ext/spl/tests/ |
H A D | array_020.phpt | 20 function key() 23 return ArrayIterator::key(); 53 ArrayIteratorEx::key 59 ArrayIteratorEx::key
|
/PHP-7.4/ext/dba/tests/ |
H A D | dba_db4_handlers.phpt | 21 foreach ($h as $key) { 22 if ($key === "db4") { 34 foreach ($h as $key => $val) { 35 if ($key === "db4") {
|
/PHP-7.4/ext/ffi/tests/ |
H A D | 008.phpt | 13 foreach ($a as $key => $val) { 14 echo "$key => $val\n"; 25 foreach ($a as $key => $val) { 26 echo "$key => $val\n";
|