Home
last modified time | relevance | path

Searched refs:key (Results 76 – 100 of 1086) sorted by relevance

12345678910>>...44

/PHP-5.4/ext/standard/tests/array/
H A Darray_walk_object2.phpt17 * Prototype : callback(mixed $value, mixed $key, int $addvalue
19 * $key - keys in given input array
23 function callback_private($value, $key, $addValue)
27 echo "key : ";
28 var_dump($key);
31 function callback_public($value, $key)
36 function callback_protected($value, $key)
84 key : int(0)
86 key : int(1)
88 key : int(2)
[all …]
H A Darray_walk_recursive_object2.phpt17 * Prototype : callback(mixed $value, mixed $key, int $addvalue
19 * $key - keys in given input array
23 function callback_private($value, $key, $addValue)
27 echo "key : ";
28 var_dump($key);
31 function callback_public($value, $key)
36 function callback_protected($value, $key)
86 key : int(0)
88 key : int(1)
90 key : int(1)
[all …]
H A Dkey_variation2.phpt2 Test key() function : usage variations
5 /* Prototype : mixed key(array $array_arg)
6 * Description: Return the key of the element currently pointed to by the internal array pointer
11 * Pass arrays where keys are different data types as $array_arg to key() to test behaviour
14 echo "*** Testing key() : usage variations ***\n";
95 // loop through each element of $inputs to check the behavior of key()
97 foreach($inputs as $key => $input) {
98 echo "\n-- Iteration $iterator : $key data --\n";
99 while (key($input) !== NULL) {
100 var_dump(key($input));
[all …]
H A Darray_key_exists_object2.phpt5 /* 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 = var2:\n";
37 echo "\$key = var3:\n";
44 echo "\$key = var3:\n";
56 $key = var1:
58 $key = var2:
60 $key = var3:
73 $key = var3:
H A Darray_flip_variation5.phpt6 * Description: Return array with key <-> value flipped
16 // array with numeric key repeatition
20 // array with string key repeatition
21 $input = array("key" => 1, "two" => 'TWO', 'three' => 3, 'key' => "FOUR");
24 // array with bool key repeatition
28 // array with null key repeatition
54 string(3) "key"
/PHP-5.4/tests/classes/
H A Diterators_006.phpt22 return $this->key !== NULL;
25 function key() {
26 return $this->key;
34 list($this->key, $this->current) = each($this->array);
35 // list($key, $current) = each($this->array);
36 // $this->key = $key;
57 #var_dump($array->key());
/PHP-5.4/ext/openssl/tests/
H A Dbug61930.phpt2 Bug #61930: openssl corrupts ssl key resource when using openssl_get_publickey()
17 $key = openssl_get_publickey($cert);
18 var_dump(openssl_get_publickey($key));
19 var_dump(openssl_verify($data, base64_decode($sig), $key));
22 resource(%d) of type (OpenSSL key)
H A D019.phpt8 $privkey = "file://" . dirname(__FILE__) . "/private.key";
9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
22 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
25 Warning: openssl_verify(): supplied key param cannot be coerced into a public key in %s on line %d
H A D009.phpt11 $fp = fopen(dirname(__FILE__) . "/private.key","r");
16 $key = "file://" . dirname(__FILE__) . "/private.key";
18 var_dump(openssl_x509_check_private_key($cert, $key));
19 var_dump(openssl_x509_check_private_key("", $key));
/PHP-5.4/ext/spl/tests/
H A Diterator_018.phpt8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val)
10 echo "$key=>$val\n";
18 foreach($it as $val=>$key)
20 echo "$val=>$key\n";
29 foreach($it as $val=>$key)
31 echo "$val=>$key\n";
H A Diterator_011.phpt8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val)
10 echo "$key=>$val\n";
18 foreach($it as $val=>$key)
20 echo "$val=>$key\n";
29 foreach($it as $val=>$key)
31 echo "$val=>$key\n";
H A Dfixedarray_003.phpt11 public function key() {
12 echo "A::key\n";
13 return parent::key();
62 A::key
67 A::key
72 A::key
77 A::key
82 A::key
H A Dbug61527.phpt10 var_dump($ai->key());
17 $ao2->offsetUnset($ai2->key());
21 $ao2->offsetUnset($ai2->key());
22 var_dump($ai2->key());
25 $ao2->offsetUnset($ai2->key());
29 var_dump($ai2->key());
34 var_dump($ai2->key());
42 var_dump($ai2->key());
59 $ao4->offsetUnset($ai4->key());
62 $ao4->offsetUnset($ai4->key());
[all …]
H A Diterator_004.phpt30 public function key()
93 NumericArrayIterator::key
98 NumericArrayIterator::key
103 NumericArrayIterator::key
112 NumericArrayIterator::key
117 NumericArrayIterator::key
122 NumericArrayIterator::key
130 NumericArrayIterator::key
135 NumericArrayIterator::key
140 NumericArrayIterator::key
H A DarrayObject_setIteratorClass_error1.phpt8 foreach($ao as $key=>$value) {
9 echo " $key=>$value\n";
18 foreach($ao as $key=>$value) {
19 echo " $key=>$value\n";
28 foreach($ao as $key=>$value) {
29 echo " $key=>$value\n";
37 foreach($ao as $key=>$value) {
38 echo " $key=>$value\n";
H A DSplFixedArray_key_param.phpt2 SplFixedArray::key() with a parameter passed. This is a bug and an error should be called.
15 echo $array->key( array("this","should","not","execute") );
20 Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
22 Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
24 Warning: SplFixedArray::key() expects exactly 0 parameters, 1 given in %s on line %d
H A Diterator_014.phpt48 function key()
51 return parent::key();
82 RecursiveArrayIteratorIterator::key
89 RecursiveArrayIteratorIterator::key
96 RecursiveArrayIteratorIterator::key
101 RecursiveArrayIteratorIterator::key
112 RecursiveArrayIteratorIterator::key
125 RecursiveArrayIteratorIterator::key
132 RecursiveArrayIteratorIterator::key
H A DarrayObject_getIteratorClass_basic1.phpt36 function key() {
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()
/PHP-5.4/ext/com_dotnet/
H A Dcom_iterator.c35 ulong key; member
85 *int_key = I->key; in com_iter_get_key()
106 I->key++; in com_iter_move_forwards()
109 I->key = (ulong)-1; in com_iter_move_forwards()
115 I->key = (ulong)-1; in com_iter_move_forwards()
118 I->key++; in com_iter_move_forwards()
120 I->key = (ulong)-1; in com_iter_move_forwards()
196 I->key = bound; in php_com_iter_get()
201 I->key = (ulong)-1; in php_com_iter_get()
230 I->key = 0; in php_com_iter_get()
[all …]
/PHP-5.4/tests/lang/
H A Dforeach_with_references_001.phpt8 foreach($arr as $key => $val) {
9 $val = $key;
14 foreach($arr as $key => &$val) {
15 $val = $key;
H A DforeachLoopIteratorAggregate.001.phpt33 public function key() {
69 public function key() {
170 --> EnglishMealIterator::key (0)
175 --> EnglishMealIterator::key (1)
180 --> EnglishMealIterator::key (2)
189 --> FrenchMealIterator::key (0)
194 --> FrenchMealIterator::key (1)
199 --> FrenchMealIterator::key (2)
204 --> FrenchMealIterator::key (3)
216 --> EnglishMealIterator::key (0)
[all …]
H A DforeachLoopIteratorAggregate.003.phpt33 public function key() {
81 --> EnglishMealIterator::key (0)
86 --> EnglishMealIterator::key (1)
91 --> EnglishMealIterator::key (2)
100 --> EnglishMealIterator::key (0)
105 --> EnglishMealIterator::key (1)
110 --> EnglishMealIterator::key (2)
119 --> EnglishMealIterator::key (0)
124 --> EnglishMealIterator::key (1)
129 --> EnglishMealIterator::key (2)
/PHP-5.4/ext/dba/
H A Ddba_inifile.c44 if (!key) { \
48 ini_key = inifile_key_split((char*)key) /* keylen not needed here */
98 php_error_docref1(NULL TSRMLS_CC, key, E_WARNING, "Operation not possible"); in DBA_UPDATE_FUNC()
104 php_error_docref1(NULL TSRMLS_CC, key, E_WARNING, "Key already exists"); in DBA_UPDATE_FUNC()
143 char *result = inifile_key_string(&dba->curr.key); in DBA_FIRSTKEY_FUNC()
155 if (!dba->curr.key.group && !dba->curr.key.name) { in DBA_NEXTKEY_FUNC()
160 char *result = inifile_key_string(&dba->curr.key); in DBA_NEXTKEY_FUNC()
/PHP-5.4/ext/sysvsem/
H A Dsysvsem.c61 ZEND_ARG_INFO(0, key)
190 long key, max_acquire = 1, perm = 0666, auto_release = 1; in PHP_FUNCTION() local
196 …if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lll", &key, &max_acquire, &perm… in PHP_FUNCTION()
206 semid = semget(key, 3, perm|IPC_CREAT); in PHP_FUNCTION()
208 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
240 …L TSRMLS_CC, E_WARNING, "failed acquiring SYSVSEM_SETVAL for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
248 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
259 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
264 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
269 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno)); in PHP_FUNCTION()
[all …]
/PHP-5.4/ext/session/
H A Dmod_mm.c54 char key[1]; /* inline key */ member
121 keylen = strlen(key); in ps_sd_new()
131 hv = ps_sd_hash(key, keylen); in ps_sd_new()
139 memcpy(sd->key, key, keylen + 1); in ps_sd_new()
161 slot = ps_sd_hash(sd->key, strlen(sd->key)) & data->hash_max; in ps_sd_destroy()
187 hv = ps_sd_hash(key, strlen(key)); in ps_sd_lookup()
191 if (ret->hv == hv && !strcmp(ret->key, key)) { in ps_sd_lookup()
344 sd = ps_sd_lookup(data, key, 0); in PS_READ_FUNC()
365 sd = ps_sd_lookup(data, key, 1); in PS_WRITE_FUNC()
367 sd = ps_sd_new(data, key); in PS_WRITE_FUNC()
[all …]

Completed in 42 milliseconds

12345678910>>...44