Home
last modified time | relevance | path

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

12345678910>>...49

/PHP-7.0/ext/reflection/tests/
H A DReflectionParameter_export_error2.phpt13 foreach($params as $key => $value) {
14 ReflectionParameter::export($reflect, $key);
21 foreach($params as $key => $value) {
22 ReflectionParameter::export(42, $key);
/PHP-7.0/ext/simplexml/tests/
H A Dbug46048.phpt9 <key>value</key>
24 [key] => value
H A Dbug67572.phpt16 foreach($xml as $key => $value) {
17 print "$key = $value ... ";
22 foreach($xml2 as $key => $value) {
23 print "$key = $value ... ";
/PHP-7.0/tests/lang/
H A Deach_binary_safety.phpt7 while (list($key, $val) = each($arr)) {
8 echo strlen($key), ': ';
9 echo urlencode($key), ' => ', urlencode($val), "\n";
/PHP-7.0/Zend/
H A Dzend_variables.c271 ZEND_API int zval_copy_static_var(zval *p, int num_args, va_list args, zend_hash_key *key) /* {{{ */ in zval_copy_static_var() argument
282 p = zend_hash_find(symbol_table, key->key); in zval_copy_static_var()
288 zend_hash_add_new(symbol_table, key->key, &tmp); in zval_copy_static_var()
291 zend_error(E_NOTICE,"Undefined variable: %s", ZSTR_VAL(key->key)); in zval_copy_static_var()
298 zend_error(E_NOTICE,"Undefined variable: %s", ZSTR_VAL(key->key)); in zval_copy_static_var()
319 zend_hash_add(target, key->key, p); in zval_copy_static_var()
H A Dzend_string.c95 if ((p->h == h) && (ZSTR_LEN(p->key) == ZSTR_LEN(str))) { in zend_new_interned_string_int()
96 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in zend_new_interned_string_int()
98 return p->key; in zend_new_interned_string_int()
137 p->key = str; in zend_new_interned_string_int()
162 ZEND_ASSERT(GC_FLAGS(p->key) & IS_STR_PERSISTENT); in zend_interned_strings_snapshot_int()
163 GC_FLAGS(p->key) |= IS_STR_PERMANENT; in zend_interned_strings_snapshot_int()
179 if (GC_FLAGS(p->key) & IS_STR_PERMANENT) break; in zend_interned_strings_restore_int()
183 GC_FLAGS(p->key) &= ~IS_STR_INTERNED; in zend_interned_strings_restore_int()
184 GC_REFCOUNT(p->key) = 1; in zend_interned_strings_restore_int()
185 zend_string_free(p->key); in zend_interned_strings_restore_int()
/PHP-7.0/ext/dba/tests/
H A Ddba_db4_handlers.phpt21 foreach ($h as $key) {
22 if ($key === "db4") {
34 foreach ($h as $key => $val) {
35 if ($key === "db4") {
/PHP-7.0/ext/spl/tests/
H A Darray_020.phpt20 function key()
23 return ArrayIterator::key();
53 ArrayIteratorEx::key
59 ArrayIteratorEx::key
H A Dobserver_002.phpt20 function key()
22 echo __METHOD__ . "(" . parent::key() . ")\n";
23 return parent::key();
90 foreach($this->observers as $key => $observer)
154 MyObjectStorage::key(0)
159 MyObjectStorage::key(1)
164 MyObjectStorage::key(2)
174 MyObjectStorage::key(0)
179 MyObjectStorage::key(1)
195 MyObjectStorage::key(0)
H A Dbug62073.phpt7 foreach ($heap as $key => $value) {
8 var_dump($key);
15 var_dump($heap->key());
H A Darray_012.phpt12 foreach($it as $key => $val)
14 echo "$key=>$val\n";
34 foreach($it as $key => $val)
36 echo "$key=>$val\n";
H A Dbug53515.phpt12 foreach ($a as $key => $value) {
13 echo $key . ': ' . (is_null($value) ? 'null' : @"$value") .
14 ' array_key_exists: ' . (array_key_exists($key, $a) ? 'true' : 'false') .
15 ' property_exists: ' . (property_exists($o, $key) ? 'true' : 'false'),"\n";
H A Diterator_021.phpt64 function key()
67 return parent::key();
116 RecursiveArrayIteratorIterator::key
125 RecursiveArrayIteratorIterator::key
134 RecursiveArrayIteratorIterator::key
140 RecursiveArrayIteratorIterator::key
151 RecursiveArrayIteratorIterator::key
166 RecursiveArrayIteratorIterator::key
174 RecursiveArrayIteratorIterator::key
H A Diterator_012.phpt10 echo $it->key() . '=>' . $it->current() . "\n";
18 foreach($it as $key=>$val)
20 echo "$key=>$val\n";
H A Diterator_019.phpt10 echo $it->key() . '=>' . $it->current() . "\n";
18 foreach($it as $key=>$val)
20 echo "$key=>$val\n";
/PHP-7.0/ext/standard/tests/array/
H A Darray_walk_error1.phpt12 /* Prototype : callback(mixed value, mixed key, mixed user_data)
13 * Parameters : value - value in key/value pair
14 * key - key in key/value pair
17 function callback ($value, $key, $user_data) {
H A Darray_walk_recursive_error1.phpt12 /* Prototype : callback(mixed value, mixed key, mixed user_data)
13 * Parameters : value - value in key/value pair
14 * key - key in key/value pair
17 function callback ($value, $key, $user_data) {
H A Dusort_variation3.phpt50 'key' => 5, //single quoted key
51 "two" => 4, //double quoted key
52 " " => 0, // space as key
61 // binary key
69 // default key
/PHP-7.0/ext/mysqli/tests/
H A Dmysqli_pam_sha256_public_key_ini.phpt42 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error));
45 $key = $row['Value'];
46 if (strlen($key) < 100) {
47 …die(sprintf("skip Server misconfiguration? RSA pub key is suspicious, [%d] %s\n", $link->errno, $l…
53 die(sprintf("skip Cannot create RSA pub key file '%s'", $file));
55 $key = str_replace("A", "a", $key);
56 $key = str_replace("M", "m", $key);
57 if (strlen($key) != fwrite($fp, $key)) {
58 die(sprintf("skip Failed to create pub key file"));
/PHP-7.0/ext/xsl/tests/
H A Dxsltprocessor_removeParameter.phpt13 $proc->setParameter('', 'key', 'value');
14 $proc->removeParameter('', 'key');
15 var_dump($proc->getParameter('', 'key'));
/PHP-7.0/ext/mcrypt/tests/
H A Dbug70625.phpt8 $key = 'secretkey';
9 $ciphertext = mcrypt_encrypt(MCRYPT_ARCFOUR, $key, 'payload', MCRYPT_MODE_STREAM);
11 $plaintext = mcrypt_decrypt(MCRYPT_ARCFOUR, $key, $ciphertext, MCRYPT_MODE_STREAM);
H A Dmcrypt_ofb.phpt7 $key = "0123456789012345";
12 $enc_data = mcrypt_decrypt($cipher, $key, $secret, MCRYPT_MODE_OFB, $iv);
15 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_OFB, $iv)) . "\n";
18 mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_OFB);
H A Dbug37595.phpt10 $key='';
12 $key .= chr($t);
35 mcrypt_generic_init($td, $key, $iv);
40 mcrypt_generic_init($td, $key, $iv);
H A Dmcrypt_cbc.phpt7 $key = "0123456789012345";
12 $enc_data = mcrypt_encrypt($cipher, $key, $secret, MCRYPT_MODE_CBC, $iv);
15 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC, $iv)) . "\n";
18 var_dump(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC));
H A Dmcrypt_cfb.phpt7 $key = "0123456789012345";
12 $enc_data = mcrypt_encrypt($cipher, $key, $secret, MCRYPT_MODE_CFB, $iv);
15 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CFB, $iv)) . "\n";
18 var_dump(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CFB));

Completed in 22 milliseconds

12345678910>>...49