/PHP-5.4/ext/standard/tests/array/ |
H A D | array_walk_recursive_variation4.phpt | 17 /* 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 D | array_walk_recursive_variation5.phpt | 25 /* 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 D | array_walk_variation5.phpt | 25 /* 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 D | array_walk_recursive_variation7.phpt | 27 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 D | array_walk_variation7.phpt | 27 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 D | each_variation6.phpt | 6 * 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 D | array_search.phpt | 8 $arr3 = array('c','key'=>'d'); 9 $arr4 = array("a\0b"=>'e','key'=>'d', 'f'); 28 string(3) "key"
|
H A D | array_key_exists_variation1.phpt | 2 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',
|
H A D | array_diff_variation6.phpt | 15 * 3. duplicate key names 20 $array_index = array('a', 'b', 'c', 0 => 'd', 'b'); //duplicate key (0), duplicate value (b) 21 $array_assoc = array ('2' => 'c', //same key=>value pair, different order 24 'b' => '3', //key and value from array_index swapped
|
/PHP-5.4/ext/spl/tests/ |
H A D | iterator_034.phpt | 64 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.4/ext/dba/ |
H A D | dba_tcadb.c | 95 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.4/ext/session/tests/ |
H A D | 004.phpt | 25 function read($key) 27 print "READ: $key\n"; 31 function write($key, $val) 33 print "WRITE: $key, $val\n"; 38 function destroy($key) 40 print "DESTROY: $key\n";
|
H A D | 024.phpt | 26 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";
|
/PHP-5.4/ext/standard/ |
H A D | incomplete_class.c | 57 …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 …class_get_property_ptr_ptr(zval *object, zval *member, 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 D | crypt_freesec.c | 385 (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.4/ext/openssl/tests/ |
H A D | bug66501.phpt | 2 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.4/tests/lang/ |
H A D | foreachLoopObjects.001.phpt | 2 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.4/ext/spl/examples/ |
H A D | dbaarray.inc | 47 * @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.4/ext/json/ |
H A D | JSON_parser.c | 406 …add_property_zval_ex(root, (key->len ? key->c : "_empty_"), (key->len ? (key->len + 1) : sizeof("_… in attach_zval() 411 …add_assoc_zval_ex(root, (key->len ? key->c : ""), (key->len ? (key->len + 1) : sizeof("")), child); in attach_zval() 413 key->len = 0; in attach_zval() 448 smart_str key = {0}; in parse_JSON_ex() local 553 …add_property_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : "_empty_"), (key.len ? (key.len +… in parse_JSON_ex() 556 …add_assoc_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : ""), (key.len ? (key.len + 1) : size… in parse_JSON_ex() 558 key.len = 0; in parse_JSON_ex() 659 SWAP_BUFFERS(buf, key); in parse_JSON_ex() 698 …add_property_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : "_empty_"), (key.len ? (key.len +… in parse_JSON_ex() 701 …add_assoc_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : ""), (key.len ? (key.len + 1) : size… in parse_JSON_ex() [all …]
|
/PHP-5.4/ext/mcrypt/tests/ |
H A D | mcrypt_decrypt.phpt | 7 $key = "FooBar"; 13 $enc_data = mcrypt_encrypt($cipher, $key, $secret, $mode, $iv); 16 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, $mode, $iv)) . "\n"; 19 mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC);
|
/PHP-5.4/ext/dba/tests/ |
H A D | dba_handlers.phpt | 21 foreach ($h as $key) { 22 if ($key === "flatfile") { 46 foreach ($h as $key => $val) { 47 if ($key === "flatfile") {
|
/PHP-5.4/tests/classes/ |
H A D | iterators_007.phpt | 12 …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()
|
/PHP-5.4/TSRM/ |
H A D | tsrm_win32.h | 28 int key; member 104 TSRM_API int shmget(int key, int size, int flags); 105 TSRM_API void *shmat(int key, const void *shmaddr, int flags); 107 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
|
/PHP-5.4/ext/sysvmsg/ |
H A D | sysvmsg.c | 44 ZEND_ARG_INFO(0, key) 82 ZEND_ARG_INFO(0, key) 234 long key; in PHP_FUNCTION() local 236 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &key) == FAILURE) { in PHP_FUNCTION() 240 if (msgget(key, 0) < 0) { in PHP_FUNCTION() 253 long key; in PHP_FUNCTION() local 257 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &key, &perms) == FAILURE) { in PHP_FUNCTION() 263 mq->key = key; in PHP_FUNCTION() 264 mq->id = msgget(key, 0); in PHP_FUNCTION() 267 mq->id = msgget(key, IPC_CREAT | IPC_EXCL | perms); in PHP_FUNCTION() [all …]
|
/PHP-5.4/ext/mysqlnd/ |
H A D | mysqlnd_result_meta.c | 57 register const char * tmp = key; in mysqlnd_is_key_numeric() 64 const char *end=key+length-1; in mysqlnd_is_key_numeric() 76 if (*key=='-') { in mysqlnd_is_key_numeric() 77 *idx = strtol(key, NULL, 10); in mysqlnd_is_key_numeric() 82 *idx = strtol(key, NULL, 10); in mysqlnd_is_key_numeric() 100 register UChar * tmp=key; in mysqlnd_unicode_is_key_numeric() 107 UChar *end=key+length-1; in mysqlnd_unicode_is_key_numeric() 119 if (*key==0x2D /*'-'*/) { in mysqlnd_unicode_is_key_numeric() 236 meta->zend_hash_keys[i].key = idx; in MYSQLND_METHOD() 250 meta->zend_hash_keys[i].key = idx; in MYSQLND_METHOD() [all …]
|