Home
last modified time | relevance | path

Searched refs:key (Results 101 – 125 of 1086) sorted by relevance

12345678910>>...44

/PHP-5.4/ext/sysvshm/tests/
H A D002.phpt8 $key = ftok(__FILE__, 't');
16 var_dump($s = shm_attach($key, -1));
18 var_dump($s = shm_attach($key, 0));
21 var_dump($s = shm_attach($key, 1024));
22 shm_remove($key);
23 var_dump($s = shm_attach($key, 1024));
25 var_dump(shm_attach($key, 1024, 0666));
28 var_dump($s = shm_attach($key, 1024));
30 var_dump($s = shm_attach($key));
H A D006.phpt8 $key = ftok(__FILE__, 't');
9 $s = shm_attach($key, 1024);
36 Warning: shm_remove_var(): variable key -10 doesn't exist in %s006.php on line %d
41 Warning: shm_get_var(): variable key 1 doesn't exist in %s006.php on line %d
44 Warning: shm_remove_var(): variable key 1 doesn't exist in %s006.php on line %d
47 Warning: shm_get_var(): variable key 1 doesn't exist in %s006.php on line %d
/PHP-5.4/Zend/
H A Dzend_variables.c193 … zval_copy_static_var(zval **p TSRMLS_DC, int num_args, va_list args, zend_hash_key *key) /* {{{ */ in zval_copy_static_var() argument
205 …if (zend_hash_quick_find(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, (void **) &… in zval_copy_static_var()
209 …zend_hash_quick_add(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zva… in zval_copy_static_var()
212 zend_error(E_NOTICE,"Undefined variable: %s", key->arKey); in zval_copy_static_var()
231 …if (zend_hash_quick_add(target, key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zval*), NULL) ==… in zval_copy_static_var()
/PHP-5.4/ext/standard/tests/array/
H A Darray_key_exists_object1.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 = var3:\n";
42 echo "\$key = var3:\n";
54 $key = var1:
56 $key = var3:
69 $key = var3:
H A Dbug21998.phpt8 var_dump(key($a));
10 var_dump(key($a));
12 var_dump(key($a));
14 var_dump(key($a));
H A Darray_rand_variation4.phpt6 * Description: Return key/keys for random entry/entries in the array
21 /*1*/ array(1 => 'one', 2 => 2, 1234567890 => 'big', -1 => 'negative key',
22 2.3 => 'float key', 0 => "zero key", 0.2 => 'decimal key',
23 2e2 => 'exp key1', -2e3 => 'negative exp key'),
27 '12twelve' => 12.00, "" => 'empty string', " " => "space key"),
41 "NULL" => 'key5', "\n" => 'newline as key',
42 "\t" => "tab as key", "'" => 'single quote as key',
43 '"' => 'double quote as key', "\0" => "null char as key")
/PHP-5.4/Zend/tests/
H A Dbug34467.phpt8 function __set ($key, $value) {
9 $this->arr[$key] = $value;
12 function __get ($key) {
13 return $this->arr[$key];
H A Dbug40509.phpt2 Bug #40509 (key() function changed behaviour if global array is used within function)
15 var_dump(key($arr["v"]));
17 var_dump(key($arr["v"]));
21 var_dump(key($arr["v"]));
/PHP-5.4/ext/phar/tests/
H A Dphar_buildfromiterator4.phpt25 function key() {
26 echo "key\n";
27 return key($this->a);
64 key
68 key
72 key
76 key
H A Dphar_buildfromiterator6.phpt2 Phar::buildFromIterator() iterator, key is int
25 function key() {
26 echo "key\n";
27 return key($this->a);
57 key
59 Iterator myIterator returned an invalid key (must return a string)
/PHP-5.4/ext/standard/
H A Dhttp.c34 char *key = NULL; in php_url_encode_hash_ex() local
59 …(key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXIST… in php_url_encode_hash_ex()
62 if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') { in php_url_encode_hash_ex()
68 if (key && *key == '\0' && type != NULL) { in php_url_encode_hash_ex()
72 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) != SUCCESS) { in php_url_encode_hash_ex()
76 zend_unmangle_property_name(key, key_len-1, &tmp, (const char**)&key); in php_url_encode_hash_ex()
77 key_len = strlen(key); in php_url_encode_hash_ex()
87 ekey = php_raw_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex()
89 ekey = php_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex()
155 ekey = php_raw_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex()
[all …]
/PHP-5.4/ext/spl/tests/
H A Ddit_004.phpt8 var_dump($a->key(), $b->key());
14 var_dump($a->key(), $c->key());
H A Ddit_005.phpt8 var_dump($a->key() == $b->key());
14 var_dump($a->key() == $c->key());
H A Diterator_039.phpt29 public function key()
77 NumericArrayIterator::key
83 NumericArrayIterator::key
89 NumericArrayIterator::key
95 NumericArrayIterator::key
109 NumericArrayIterator::key
116 NumericArrayIterator::key
/PHP-5.4/ext/json/tests/
H A Dbug41504.phpt9 var_dump(json_decode('{"":"value", "key":"value"}', true));
10 var_dump(json_decode('{"key":"value", "":"value"}', true));
22 ["key"]=>
26 ["key"]=>
/PHP-5.4/ext/dba/libcdb/
H A Dcdb.c46 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos TSRMLS_DC) in cdb_match() argument
57 if (memcmp(buf, key, n)) in cdb_match()
60 key += n; in cdb_match()
129 int cdb_findnext(struct cdb *c, char *key, unsigned int len TSRMLS_DC) in cdb_findnext() argument
136 u = cdb_hash(key, len); in cdb_findnext()
166 switch(cdb_match(c, key, len, pos + 8 TSRMLS_CC)) { in cdb_findnext()
182 int cdb_find(struct cdb *c, char *key, unsigned int len TSRMLS_DC) in cdb_find() argument
185 return cdb_findnext(c, key, len TSRMLS_CC); in cdb_find()
/PHP-5.4/ext/phar/tests/tar/
H A Dphar_buildfromiterator6.phpt2 Phar::buildFromIterator() iterator, key is int tar-based
25 function key() {
26 echo "key\n";
27 return key($this->a);
57 key
59 Iterator myIterator returned an invalid key (must return a string)
/PHP-5.4/ext/phar/tests/zip/
H A Dphar_buildfromiterator6.phpt2 Phar::buildFromIterator() iterator, key is int zip-based
25 function key() {
26 echo "key\n";
27 return key($this->a);
57 key
59 Iterator myIterator returned an invalid key (must return a string)
/PHP-5.4/ext/session/tests/
H A Dsession_encode_error2.phpt103 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
110 Notice: session_encode(): Skipping numeric key 1 in %s on line %d
131 Notice: session_encode(): Skipping numeric key 10 in %s on line %d
138 Notice: session_encode(): Skipping numeric key -10 in %s on line %d
145 Notice: session_encode(): Skipping numeric key %s in %s on line %d
152 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
159 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
176 Notice: session_encode(): Skipping numeric key 1 in %s on line %d
183 Notice: session_encode(): Skipping numeric key 0 in %s on line %d
190 Notice: session_encode(): Skipping numeric key 1 in %s on line %d
[all …]
/PHP-5.4/ext/mcrypt/tests/
H A Dmcrypt_decrypt_error.phpt11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i…
12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
23 $key = 'string_val';
28 var_dump( mcrypt_decrypt($cipher, $key, $data, $mode, $iv, $extra_arg) );
33 $key = 'string_val';
35 var_dump( mcrypt_decrypt($cipher, $key, $data) );
H A Dmcrypt_cbc_error.phpt11 /* Prototype : string mcrypt_cbc(int cipher, string key, string data, int mode, string iv)
12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv
23 $key = 'string_val';
28 var_dump( mcrypt_cbc($cipher, $key, $data, $mode, $iv, $extra_arg) );
33 $key = 'string_val';
35 var_dump( mcrypt_cbc($cipher, $key, $data) );
H A Dmcrypt_ecb_error.phpt11 /* Prototype : string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)
12 * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv
23 $key = 'string_val';
28 var_dump( mcrypt_ecb($cipher, $key, $data, $mode, $iv, $extra_arg) );
33 $key = 'string_val';
35 var_dump( mcrypt_ecb($cipher, $key, $data) );
H A Dmcrypt_encrypt_error.phpt11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i…
12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv
23 $key = 'string_val';
28 var_dump( mcrypt_encrypt($cipher, $key, $data, $mode, $iv, $extra_arg) );
33 $key = 'string_val';
35 var_dump( mcrypt_encrypt($cipher, $key, $data) );
H A Dblowfish.phpt14 print "key plain crypt guess stat\n";
23 list($key,$plain,$crypt) = preg_split("/[[:space:]]+/",$data);
25 $key,
28 $key = hex2bin(trim($key));
32 mcrypt_generic_init ($td, $key, $null);
46 $key = hex2bin( "0123456789ABCDEFF0E1D2C3B4A59687" );
50 mcrypt_generic_init( $td, $key, $iv );
56 key plain crypt guess stat
/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_sockets.c37 char *key; member
86 unlink(ls->key); in fpm_sockets_cleanup()
89 free(ls->key); in fpm_sockets_cleanup()
103 if (key == NULL) { in fpm_sockets_hash_op()
107 key = alloca(sizeof("xxx.xxx.xxx.xxx:ppppp")); in fpm_sockets_hash_op()
114 key = alloca(strlen(sa_un->sun_path) + 1); in fpm_sockets_hash_op()
115 strcpy(key, sa_un->sun_path); in fpm_sockets_hash_op()
132 if (!strcmp(ls->key, key)) { in fpm_sockets_hash_op()
157 ls->key = strdup(key); in fpm_sockets_hash_op()
376 unlink(ls->key); in fpm_sockets_init_main()
[all …]

Completed in 84 milliseconds

12345678910>>...44