/PHP-5.4/ext/spl/tests/ |
H A D | arrayObject_exchangeArray_basic2.phpt | 8 var_dump($ao['key']); 13 $obj->key = 'normal object prop'; 15 var_dump($ao['key']); 21 var_dump($ao['key']); 27 var_dump($ao['key']); 33 var_dump($ao['key']); 42 ["key"]=> 52 ["key"]=> 64 ["key"]=> 77 ["key"]=> [all …]
|
H A D | CallbackFilterIteratorTest.phpt | 7 function test($value, $key, $inner) { 8 return test($value, $key, $inner); 13 static function test($value, $key, $inner) { 14 return test($value, $key, $inner); 18 function test($value, $key, $inner) { 21 , $key 23 , $key == $inner->key() 33 …ymous function' => function() { return function($value, $key, $inner) { return test($value, $key, …
|
H A D | iterator_008.phpt | 23 function key() 26 return parent::key(); 53 ArrayIteratorEx::key 58 ArrayIteratorEx::key 63 ArrayIteratorEx::key 70 ArrayIteratorEx::key 75 ArrayIteratorEx::key 80 ArrayIteratorEx::key 87 ArrayIteratorEx::key
|
H A D | RecursiveCallbackFilterIteratorTest.phpt | 7 function test($value, $key, $inner) { 8 return test($value, $key, $inner); 13 static function test($value, $key, $inner) { 14 return test($value, $key, $inner); 18 function test($value, $key, $inner) { 24 , $key 26 , $key == $inner->key() 36 …ymous function' => function() { return function($value, $key, $inner) { return test($value, $key, …
|
H A D | fileobject_001.phpt | 8 var_dump($o->key()); 11 var_dump($o->key()); 13 var_dump($o->key()); 15 var_dump($o->key()); 17 var_dump($o->key()); 19 var_dump($o->key()); 21 var_dump($o->key()); 23 var_dump($o->key()); 25 var_dump($o->key());
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | key_basic.phpt | 2 Test key() function : basic functionality 5 /* Prototype : mixed key(array $array_arg) 6 * Description: Return the key of the element currently pointed to by the internal array pointer 11 * Test basic functionality of key() 14 echo "*** Testing key() : basic functionality ***\n"; 18 var_dump(key($array)); 22 var_dump(key($array)); 26 var_dump(key($array)); 30 var_dump(key($array)); 34 *** Testing key() : basic functionality ***
|
H A D | key_variation4.phpt | 2 Test key() function : usage variations 5 /* Prototype : mixed key(array $array_arg) 14 echo "*** Testing key() : usage variations ***\n"; 19 var_dump(key($multi_array)); 23 var_dump(key($multi_array)); 27 var_dump(key($multi_array)); 32 var_dump(key($multi_array[1])); 40 var_dump(key($multi_array)); 43 var_dump(key($multi_array[3][3][3])); 45 var_dump(key($multi_array[3][3][3][1])); [all …]
|
H A D | bug61730.phpt | 9 function($value, $key) use ($myArray) 17 function($value, $key) use (&$myArray) 19 var_dump($key); 20 unset($myArray[$key]); 21 unset($myArray[$key+1]); 22 unset($myArray[$key+2]);
|
H A D | array_walk_basic2.phpt | 16 /* Prototype : test_alter(mixed $item, mixed $key, string $prefix) 17 * Parameters : item - value in key/value pair 18 * key - key in key/value pair 22 function test_alter(&$item, $key, $prefix) 27 var_dump($key); // key 32 /* Prototype : test_print(mixed $item, mixed $key) 33 * Parameters : item - value in key/value pair 34 * key - key in key/value pair 37 function test_print($item, $key) 42 var_dump($key); // key
|
H A D | array_walk_recursive_basic2.phpt | 16 /* Prototype : test_alter(mixed $item, mixed $key, string $prefix) 17 * Parameters : item - value in key/value pair 18 * key - key in key/value pair 22 function test_alter(&$item, $key, $prefix) 27 var_dump($key); // key 32 /* Prototype : test_print(mixed $item, mixed $key) 33 * Parameters : item - value in key/value pair 34 * key - key in key/value pair 37 function test_print($item, $key) 42 var_dump($key); // key
|
H A D | bug12776.phpt | 6 function test($val,$key) 9 $globalArray[]=$key; // this will end up crashing 10 $globalArray[]=(string)$key; // this will end up OK 11 print "val: $val; key: $key\n"; flush(); 23 val: v; key: k
|
H A D | bug14580.phpt | 2 Bug #14580 (key() not binary safe) 6 $key = key($arr); 7 echo strlen($key), ': '; 8 echo urlencode($key), "\n";
|
H A D | array_key_exists_variation3.phpt | 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 floats as $key argument, then cast float values 13 * to integers and pass as $key argument 23 foreach($keys as $key) { 25 echo "Pass float as \$key:\n"; 26 var_dump(array_key_exists($key, $search)); 28 var_dump(array_key_exists((int)$key, $search)); 38 Pass float as $key: 46 Pass float as $key: [all …]
|
/PHP-5.4/ext/soap/tests/bugs/ |
H A D | bug37083.phpt | 29 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 30 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 31 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 32 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 33 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 34 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 35 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 36 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 37 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=… 38 …key xsi:type="soapenc:string">maxDateTime</key><value soapenc:arrayType="xsd:anyType[1]" xsi:type=…
|
/PHP-5.4/ext/openssl/tests/ |
H A D | 016.phpt | 8 $privkey = "file://" . dirname(__FILE__) . "/private.key"; 9 $pubkey = "file://" . dirname(__FILE__) . "/public.key"; 30 Warning: openssl_public_decrypt(): key parameter is not a valid public key in %s on line %d 36 Warning: openssl_public_decrypt(): key array must be of the form array(0 => key, 1 => phrase) in %s… 38 Warning: openssl_public_decrypt(): key parameter is not a valid public key in %s on line %d 42 Warning: openssl_public_decrypt(): key array must be of the form array(0 => key, 1 => phrase) in %s… 44 Warning: openssl_public_decrypt(): key parameter is not a valid public key in %s on line %d
|
/PHP-5.4/ext/mcrypt/tests/ |
H A D | mcrypt_encrypt_3des_cbc.phpt | 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 22 //test different lengths of key, iv 46 echo "\n--- testing different key lengths\n"; 47 foreach ($keys as $key) { 48 echo "\nkey length=".strlen($key)."\n"; 52 $key = b'1234567890123456'; 64 --- testing different key lengths 66 key length=8 69 key length=20 72 key length=24 [all …]
|
H A D | mcrypt_cbc_3des_encrypt.phpt | 12 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 38 echo "\n--- testing different key lengths\n"; 39 foreach ($keys as $key) { 40 echo "\nkey length=".strlen($key)."\n"; 41 var_dump(bin2hex(mcrypt_cbc($cipher, $key, $data, $mode, $iv))); 44 $key = b'1234567890123456'; 55 --- testing different key lengths 57 key length=8 60 key length=20 63 key length=24 [all …]
|
H A D | mcrypt_rijndael128_128BitKey.phpt | 12 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 17 * Description: OFB crypt/decrypt data using key key with cipher cipher starting with iv 22 * Description: CBC crypt/decrypt data using key key with cipher cipher starting with iv 52 foreach ($keys as $key) { 53 echo "\nkey length=".strlen($key)."\n"; 60 $key = b'1234567890123456'; 75 --- testing different key lengths 77 key length=0 81 key length=0 85 key length=8 [all …]
|
H A D | mcrypt_decrypt_3des_ecb.phpt | 11 /* 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 49 echo "\n--- testing different key lengths\n"; 55 $key = b'1234567890123456'; 59 special_var_dump(mcrypt_decrypt($cipher, $key, base64_decode($data2[$i]), $mode, $ivs[$i])); 70 --- testing different key lengths 72 key length=8 75 key length=20 78 key length=24 81 key length=26 [all …]
|
/PHP-5.4/win32/build/ |
H A D | registersyslog.php | 14 $key = @reg_create_key(HKEY_LOCAL_MACHINE, $PATH, KEY_ALL_ACCESS); variable 16 if (!$key) 17 $key = reg_open_key(HKEY_LOCAL_MACHINE, $PATH, KEY_ALL_ACCESS); variable 19 if ($key) { 20 reg_set_value($key, "TypesSupported", REG_DWORD, 7) or die("Types"); 21 reg_set_value($key, "EventMessageFile", REG_SZ, $dll) or die("EventMessageFile");
|
/PHP-5.4/Zend/tests/ |
H A D | bug39036.phpt | 2 Bug #39036 (Unsetting key of foreach() yields segmentation fault) 6 $key = 'asdf'; 8 foreach (get_defined_vars() as $key => $value) { 9 unset($$key); 12 var_dump($key); 17 Notice: Undefined variable: key in %s on line %d
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | fstat_variation8.phpt | 13 foreach($stat_result as $key =>$value) { 14 if ($isWin && ($key === 0 || $key === 6 || $key === 'dev' || $key === 'rdev')) { 18 if ($fstat_result[$key] != $value) { 19 echo "FAIL: stat differs at '$key'. $fstat_result[$key] -- $value\n";
|
/PHP-5.4/ext/soap/tests/ |
H A D | bug48557.phpt | 24 <key xsi:type="xsd:int">1</key> 28 <key xsi:type="xsd:int">-1000</key> 32 <key xsi:type="xsd:string">2</key> 36 <key xsi:type="xsd:string">-2000</key> 40 <key xsi:type="xsd:string">011</key> 44 <key xsi:type="xsd:int">012</key>
|
/PHP-5.4/ext/spl/examples/ |
H A D | dbareader.inc | 21 private $key = false; 47 $this->key = dba_firstkey($this->db); 57 $this->key = dba_nextkey($this->db); 62 * Fetches the current data if $key is valid 65 if ($this->key !== false) { 66 $this->val = dba_fetch($this->key, $this->db); 81 if ($this->db && $this->key !== false) { 89 * @return Current key. 91 function key() { 92 return $this->key;
|
/PHP-5.4/ext/dba/libinifile/ |
H A D | inifile.h | 34 key_type key; member 48 val_type inifile_fetch(inifile *dba, const key_type *key, int skip TSRMLS_DC); 51 int inifile_delete(inifile *dba, const key_type *key TSRMLS_DC); 52 int inifile_replace(inifile *dba, const key_type *key, const val_type *val TSRMLS_DC); 53 int inifile_append(inifile *dba, const key_type *key, const val_type *val TSRMLS_DC); 57 char * inifile_key_string(const key_type *key); 59 void inifile_key_free(key_type *key);
|