Home
last modified time | relevance | path

Searched refs:key (Results 201 – 225 of 1173) sorted by relevance

12345678910>>...47

/PHP-5.6/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 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_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 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',
/PHP-5.6/ext/openssl/tests/
H A Dopenssl_spki_export_basic.phpt2 openssl_spki_export() tests for exporting public key
6 if (!@openssl_pkey_new()) die("skip cannot create private key");
11 /* array of private key sizes to test */
15 $key_file = "file://" . dirname(__FILE__) . "/private_rsa_" . $key_size . ".key";
32 /* loop over key sizes for test */
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.6/ext/spl/examples/
H A Ddualiterator.inc109 /** @return key value depending on KEY_* flags
111 function key()
117 return $this->lhs->key();
119 return $this->rhs->key();
134 * current and key values or both are non valid.
140 && $this->lhs->key() === $this->rhs->key()
145 * and key values or both are non valid.
151 && $this->lhs->key() == $this->rhs->key()
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.6/sapi/phpdbg/
H A Dphpdbg_utils.h129 static void zend_hash_get_current_key_zval_ex(const HashTable *ht, zval *key, HashPosition *pos) { in zend_hash_get_current_key_zval_ex() argument
135 Z_TYPE_P(key) = IS_NULL; in zend_hash_get_current_key_zval_ex()
137 Z_TYPE_P(key) = IS_STRING; in zend_hash_get_current_key_zval_ex()
138 Z_STRVAL_P(key) = IS_INTERNED(p->arKey) ? (char*)p->arKey : estrndup(p->arKey, p->nKeyLength - 1); in zend_hash_get_current_key_zval_ex()
139 Z_STRLEN_P(key) = p->nKeyLength - 1; in zend_hash_get_current_key_zval_ex()
141 Z_TYPE_P(key) = IS_LONG; in zend_hash_get_current_key_zval_ex()
142 Z_LVAL_P(key) = p->h; in zend_hash_get_current_key_zval_ex()
/PHP-5.6/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.6/ext/session/tests/
H A D004.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";
H A D024.phpt27 function read($key)
29 print "READ: $key\n";
33 function write($key, $val)
35 print "WRITE: $key, $val\n";
40 function destroy($key)
42 print "DESTROY: $key\n";
/PHP-5.6/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 …property_ptr_ptr(zval *object, zval *member, int type, 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.6/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.6/ext/mcrypt/tests/
H A Dbug72535.phpt11 $key = substr(md5('pass1' . $passphrase, true) .
13 $opts = array('iv' => $iv, 'key' => $key, 'mode' => 'stream');
H A Dmcrypt_cbc.phpt7 $key = "0123456789012345";
12 $enc_data = mcrypt_cbc($cipher, $key, $secret, MCRYPT_ENCRYPT, $iv);
15 echo trim(mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
18 var_dump(mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT));
/PHP-5.6/ext/hash/
H A Dhash.c371 hash->key = NULL; in PHP_FUNCTION()
528 efree(hash->key); in PHP_FUNCTION()
529 hash->key = NULL; in PHP_FUNCTION()
586 if (hash->key) { in PHP_FUNCTION()
587 memcpy(copy_hash->key, hash->key, hash->ops->block_size); in PHP_FUNCTION()
790 if (hash->key) { in php_hash_dtor()
792 efree(hash->key); in php_hash_dtor()
994 efree(key); in PHP_FUNCTION()
1145 ZEND_ARG_INFO(0, key)
1152 ZEND_ARG_INFO(0, key)
[all …]
/PHP-5.6/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.6/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.6/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()

Completed in 108 milliseconds

12345678910>>...47