Home
last modified time | relevance | path

Searched refs:key (Results 151 – 175 of 1173) sorted by relevance

12345678910>>...47

/PHP-5.6/ext/standard/tests/array/
H A Darray_slice_variation7.phpt117 -- Iteration 1 : key type is int --
141 -- Iteration 2 : key type is float --
161 -- Iteration 3 : key type is extreme floats --
177 -- Iteration 4 : key type is null uppercase --
189 -- Iteration 5 : key type is null lowercase --
201 -- Iteration 6 : key type is bool lowercase --
217 -- Iteration 7 : key type is bool uppercase --
233 -- Iteration 8 : key type is empty double quotes --
257 -- Iteration 10 : key type is string --
277 -- Iteration 11 : key type is undefined --
[all …]
H A Darray_key_exists_basic.phpt5 /* 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 Darray_key_exists_error.phpt5 /* Prototype : bool array_key_exists(mixed $key, array $search)
6 * Description: Checks if the given key or index exists in the array
19 $key = 1;
22 var_dump( array_key_exists($key, $search, $extra_arg) );
26 $key = 1;
27 var_dump( array_key_exists($key) );
H A Duasort_variation3.phpt54 // default key
55 1, //expecting: default key 0, value will be replaced by 'FALSE'
65 'key' => 5, //single quoted key
66 "two" => 4, //double quoted key
69 " " => 0, // space as key
81 // binary key
126 ["key"]=>
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-5.6/ext/spl/internal/
H A Dregexiterator.inc22 const USE_KEY = 0x00000001; /**< If present in $flags the key is
29 const REPLACE = 4; /**< Mode: Replace the input key or current */
37 private $key; /**< the value used for key() */
61 * Match current or key against regular expression using mode, flags and
71 $this->key = parent::key();
74 $subject = ($this->flags & self::USE_KEY) ? $this->key : $this->current;
97 $this->key = $result;
106 /** @return the key after accept has been called
108 function key()
110 return $this->key;
/PHP-5.6/Zend/tests/
H A Dforeach_list_003.phpt2 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-5.6/tests/lang/
H A DforeachLoopIterator.001.phpt34 public function key() {
87 --> MealIterator::key (0)
92 --> MealIterator::key (1)
97 --> MealIterator::key (2)
109 --> MealIterator::key (0)
116 --> MealIterator::key (0)
121 --> MealIterator::key (1)
126 --> MealIterator::key (2)
H A Deach_binary_safety.phpt7 while (list($key, $val) = each($arr)) {
8 echo strlen($key), ': ';
9 echo urlencode($key), ' => ', urlencode($val), "\n";
/PHP-5.6/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-5.6/ext/spl/tests/
H A DSplFileObject_key_error003.phpt2 SPL: SplFileObject::key error
12 $s->key(3);
15 Warning: SplFileObject::key() expects exactly 0 parameters, 1 given in %s on line %d
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)
/PHP-5.6/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-5.6/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-5.6/ext/openssl/tests/
H A Dbug54992.phpt14 Generate new key for CA:
15 $ openssl genrsa -out ./ext/openssl/tests/bug54992-ca.key 4096
18 $ openssl req -new -x509 -key ./ext/openssl/tests/bug54992-ca.key \
23 Extract private key from the bundle:
24 $ openssl rsa -in ext/openssl/tests/bug54992.pem > ext/openssl/tests/bug54992.key
27 …nssl/tests/bug54992.pem -out ext/openssl/tests/bug54992.csr -signkey ext/openssl/tests/bug54992.key
32 -CAkey ./ext/openssl/tests/bug54992-ca.key \
39 Bundle certificate's private key with the certificate:
40 $ cat ext/openssl/tests/bug54992.key >> ext/openssl/tests/bug54992.pem\
/PHP-5.6/Zend/
H A Dzend_object_handlers.h34 …_read_property_t)(zval *object, zval *member, int type, const struct _zend_literal *key TSRMLS_DC);
46 …te_property_t)(zval *object, zval *member, zval *value, const struct _zend_literal *key TSRMLS_DC);
53 …operty_ptr_ptr_t)(zval *object, zval *member, int type, const struct _zend_literal *key TSRMLS_DC);
70 …erty_t)(zval *object, zval *member, int has_set_exists, const struct _zend_literal *key TSRMLS_DC);
76 …nd_object_unset_property_t)(zval *object, zval *member, const struct _zend_literal *key TSRMLS_DC);
91 …hod_t)(zval **object_ptr, char *method, int method_len, const struct _zend_literal *key TSRMLS_DC);
158 …t char *function_name_strval, int function_name_strlen, const struct _zend_literal *key TSRMLS_DC);
159 …property_name, int property_name_len, zend_bool silent, const struct _zend_literal *key TSRMLS_DC);
160 … *ce, const char *property_name, int property_name_len, const struct _zend_literal *key TSRMLS_DC);
166 …write_property(zval *object, zval *member, zval *value, const struct _zend_literal *key TSRMLS_DC);
/PHP-5.6/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-5.6/sapi/phpdbg/tests/
H A Drun-tests.php51 while (($key = array_shift($cmd))) {
52 switch (substr($key, 0, 1)) {
55 $arg = substr($key, 2);
57 $key = substr($arg, 0, $e);
60 $key = $arg;
65 switch ($key) {
68 $this->options[$key] = $value;
72 if (isset($config[$key])) {
73 if (is_array($config[$key])) {
76 $this->options[$key] = array($config[$key], $value);
[all …]
/PHP-5.6/ext/session/
H A Dmod_files.c81 key_len = strlen(key); in ps_files_path_create()
87 p = key; in ps_files_path_create()
97 memcpy(buf + n, key, key_len); in ps_files_path_create()
135 if (php_session_valid_key(key) == FAILURE) { in ps_files_open()
140 if (!ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_open()
145 data->lastkey = estrdup(key); in ps_files_open()
246 if (!key || !ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_key_exists()
348 ps_files_key_exists(data, key TSRMLS_CC) == FAILURE) { in PS_READ_FUNC()
350 if (key) { in PS_READ_FUNC()
412 ps_files_open(data, key TSRMLS_CC); in PS_WRITE_FUNC()
[all …]
/PHP-5.6/ext/dba/
H A Ddba.c75 ZEND_ARG_INFO(0, key)
80 ZEND_ARG_INFO(0, key)
86 ZEND_ARG_INFO(0, key)
98 ZEND_ARG_INFO(0, key)
103 ZEND_ARG_INFO(0, key)
229 zval tmp = *key;
558 zval *key; in php_dba_update() local
585 #define FREENOW if(args) efree(args); if(key) efree(key)
1049 char *key, *name; in PHP_FUNCTION() local
1064 if (key[0] == '[' && (name = strchr(key, ']')) != NULL) { in PHP_FUNCTION()
[all …]
/PHP-5.6/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);

Completed in 109 milliseconds

12345678910>>...47