Home
last modified time | relevance | path

Searched refs:key (Results 176 – 200 of 1086) sorted by relevance

12345678910>>...44

/PHP-5.4/ext/standard/tests/array/
H A Darray_walk_recursive_variation4.phpt17 /* 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 Darray_walk_recursive_variation5.phpt25 /* Prototype : callback(int $value, mixed $key)
27 * $key - keys in given input array
30 function callback($value, $key)
34 var_dump($key); // key
H A Darray_walk_variation5.phpt25 /* Prototype : callback(int $value, mixed $key)
27 * $key - keys in given input array
30 function callback($value, $key)
34 var_dump($key); // key
H A Darray_walk_recursive_variation7.phpt27 var_dump( array_walk_recursive($input, create_function('$value, $key', 'var_dump($key); var_dump($v…
30 var_dump( array_walk_recursive($input, create_function('$value, $key, $user_data', 'var_dump($key);…
33 var_dump( array_walk_recursive($input, create_function('$value, $key, $user_data', 'var_dump($key);…
H A Darray_walk_variation7.phpt27 var_dump( array_walk($input, create_function('$value, $key', 'var_dump($key); var_dump($value); ech…
30 var_dump( array_walk($input, create_function('$value, $key, $user_data', 'var_dump($key); var_dump(…
33 var_dump( array_walk($input, create_function('$value, $key, $user_data', 'var_dump($key); var_dump(…
H A Deach_variation6.phpt6 * Description: Return the currently pointed key..value pair in the passed array,
20 echo key($arr) . " => " . current($arr) . "\n";
26 echo key($arr) . " => " . current($arr) . "\n";
45 ["key"]=>
H A Darray_search.phpt8 $arr3 = array('c','key'=>'d');
9 $arr4 = array("a\0b"=>'e','key'=>'d', 'f');
28 string(3) "key"
H A Darray_key_exists_variation1.phpt2 Test array_key_exists() function : usage variations - Pass different data types as $key arg
5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
12 * Pass different data types as $key argument to array_key_exists() to test behaviour
18 $search = array ('zero', 'key' => 'val', 'two');
28 return "key";
34 key
40 // unexpected values to be passed to $key argument
72 /*19*/ "key",
73 'key',
H A Darray_diff_variation6.phpt15 * 3. duplicate key names
20 $array_index = array('a', 'b', 'c', 0 => 'd', 'b'); //duplicate key (0), duplicate value (b)
21 $array_assoc = array ('2' => 'c', //same key=>value pair, different order
24 'b' => '3', //key and value from array_index swapped
/PHP-5.4/ext/spl/tests/
H A Diterator_034.phpt64 function key()
67 return parent::key();
129 RecursiveArrayIteratorIterator::key()
139 RecursiveArrayIteratorIterator::key()
149 RecursiveArrayIteratorIterator::key()
155 RecursiveArrayIteratorIterator::key()
167 RecursiveArrayIteratorIterator::key()
173 RecursiveArrayIteratorIterator::key()
/PHP-5.4/ext/dba/
H A Ddba_tcadb.c95 value = tcadbget(dba->tcadb, key, keylen, &value_size); in DBA_FETCH_FUNC()
114 if (tcadbvsiz(dba->tcadb, key, keylen) > -1) { in DBA_UPDATE_FUNC()
119 result = tcadbput(dba->tcadb, key, keylen, val, vallen); in DBA_UPDATE_FUNC()
125 php_error_docref2(NULL TSRMLS_CC, key, val, E_WARNING, "Error updating data"); in DBA_UPDATE_FUNC()
135 value = tcadbget(dba->tcadb, key, keylen, &value_len); in DBA_EXISTS_FUNC()
148 return tcadbout(dba->tcadb, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
/PHP-5.4/ext/session/tests/
H A D004.phpt25 function read($key)
27 print "READ: $key\n";
31 function write($key, $val)
33 print "WRITE: $key, $val\n";
38 function destroy($key)
40 print "DESTROY: $key\n";
H A D024.phpt26 function read($key)
28 print "READ: $key\n";
32 function write($key, $val)
34 print "WRITE: $key, $val\n";
39 function destroy($key)
41 print "DESTROY: $key\n";
/PHP-5.4/ext/standard/
H A Dincomplete_class.c57 …ass_get_property(zval *object, zval *member, int type, const zend_literal *key TSRMLS_DC) /* {{{ */ in incomplete_class_get_property()
69 …rite_property(zval *object, zval *member, zval *value, const zend_literal *key TSRMLS_DC) /* {{{ */ in incomplete_class_write_property()
75 …class_get_property_ptr_ptr(zval *object, zval *member, const zend_literal *key TSRMLS_DC) /* {{{ */ in incomplete_class_get_property_ptr_ptr()
82 static void incomplete_class_unset_property(zval *object, zval *member, const zend_literal *key TSR… in incomplete_class_unset_property()
88 …_property(zval *object, zval *member, int check_empty, const zend_literal *key TSRMLS_DC) /* {{{ */ in incomplete_class_has_property()
95 …et_method(zval **object, char *method, int method_len, const zend_literal *key TSRMLS_DC) /* {{{ */ in incomplete_class_get_method()
H A Dcrypt_freesec.c385 (uint32_t)(u_char)key[3] | in des_setkey()
386 ((uint32_t)(u_char)key[2] << 8) | in des_setkey()
388 ((uint32_t)(u_char)key[0] << 24); in des_setkey()
390 (uint32_t)(u_char)key[7] | in des_setkey()
391 ((uint32_t)(u_char)key[6] << 8) | in des_setkey()
393 ((uint32_t)(u_char)key[4] << 24); in des_setkey()
632 *q++ = *key << 1; in _crypt_extended_r()
633 if (*key) in _crypt_extended_r()
634 key++; in _crypt_extended_r()
661 while (*key) { in _crypt_extended_r()
[all …]
/PHP-5.4/ext/openssl/tests/
H A Dbug66501.phpt2 Bug #66501: EC private key support in openssl_sign
18 $key = openssl_pkey_get_private($pkey);
19 $res = openssl_sign($data ='alpha', $sign, $key, 'ecdsa-with-SHA1');
/PHP-5.4/tests/lang/
H A DforeachLoopObjects.001.phpt2 Foreach loop on objects - basic loop with just value and key => value.
23 echo "\nCheck key and value after the loop.\n";
34 echo "\nCheck key and value after the loop.\n";
51 Check key and value after the loop.
67 Check key and value after the loop.
/PHP-5.4/ext/spl/examples/
H A Ddbaarray.inc47 * @param $name key to read from
66 * @param $name key to write to
77 * @return whether key $name exists.
85 * Delete a key/value pair.
87 * @param $name key to delete.
/PHP-5.4/ext/json/
H A DJSON_parser.c406 …add_property_zval_ex(root, (key->len ? key->c : "_empty_"), (key->len ? (key->len + 1) : sizeof("_… in attach_zval()
411 …add_assoc_zval_ex(root, (key->len ? key->c : ""), (key->len ? (key->len + 1) : sizeof("")), child); in attach_zval()
413 key->len = 0; in attach_zval()
448 smart_str key = {0}; in parse_JSON_ex() local
553 …add_property_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : "_empty_"), (key.len ? (key.len +… in parse_JSON_ex()
556 …add_assoc_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : ""), (key.len ? (key.len + 1) : size… in parse_JSON_ex()
558 key.len = 0; in parse_JSON_ex()
659 SWAP_BUFFERS(buf, key); in parse_JSON_ex()
698 …add_property_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : "_empty_"), (key.len ? (key.len +… in parse_JSON_ex()
701 …add_assoc_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : ""), (key.len ? (key.len + 1) : size… in parse_JSON_ex()
[all …]
/PHP-5.4/ext/mcrypt/tests/
H A Dmcrypt_decrypt.phpt7 $key = "FooBar";
13 $enc_data = mcrypt_encrypt($cipher, $key, $secret, $mode, $iv);
16 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, $mode, $iv)) . "\n";
19 mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC);
/PHP-5.4/ext/dba/tests/
H A Ddba_handlers.phpt21 foreach ($h as $key) {
22 if ($key === "flatfile") {
46 foreach ($h as $key => $val) {
47 if ($key === "flatfile") {
/PHP-5.4/tests/classes/
H A Diterators_007.phpt12 …public function key() { if ($this->x == 2) throw new Exception(__METHOD__); return key($this…
14 …public function valid() { if ($this->x == 4) throw new Exception(__METHOD__); return (key($thi…
39 Caught in Test::key()
/PHP-5.4/TSRM/
H A Dtsrm_win32.h28 int key; member
104 TSRM_API int shmget(int key, int size, int flags);
105 TSRM_API void *shmat(int key, const void *shmaddr, int flags);
107 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
/PHP-5.4/ext/sysvmsg/
H A Dsysvmsg.c44 ZEND_ARG_INFO(0, key)
82 ZEND_ARG_INFO(0, key)
234 long key; in PHP_FUNCTION() local
236 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &key) == FAILURE) { in PHP_FUNCTION()
240 if (msgget(key, 0) < 0) { in PHP_FUNCTION()
253 long key; in PHP_FUNCTION() local
257 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &key, &perms) == FAILURE) { in PHP_FUNCTION()
263 mq->key = key; in PHP_FUNCTION()
264 mq->id = msgget(key, 0); in PHP_FUNCTION()
267 mq->id = msgget(key, IPC_CREAT | IPC_EXCL | perms); in PHP_FUNCTION()
[all …]
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_result_meta.c57 register const char * tmp = key; in mysqlnd_is_key_numeric()
64 const char *end=key+length-1; in mysqlnd_is_key_numeric()
76 if (*key=='-') { in mysqlnd_is_key_numeric()
77 *idx = strtol(key, NULL, 10); in mysqlnd_is_key_numeric()
82 *idx = strtol(key, NULL, 10); in mysqlnd_is_key_numeric()
100 register UChar * tmp=key; in mysqlnd_unicode_is_key_numeric()
107 UChar *end=key+length-1; in mysqlnd_unicode_is_key_numeric()
119 if (*key==0x2D /*'-'*/) { in mysqlnd_unicode_is_key_numeric()
236 meta->zend_hash_keys[i].key = idx; in MYSQLND_METHOD()
250 meta->zend_hash_keys[i].key = idx; in MYSQLND_METHOD()
[all …]

Completed in 41 milliseconds

12345678910>>...44