/php-src/Zend/tests/ |
H A D | bug79793.phpt | 6 $key = "foo"; 7 $key .= "bar"; 8 set_error_handler(function($_, $m) use (&$key) { 10 $key .= "baz"; 14 $ary[$key]++; 16 $ary[$key] += 1; 21 Undefined array key "foobar" 26 Undefined array key "foobarbaz"
|
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 Warning: Undefined variable $key in %s on line %d
|
/php-src/Zend/tests/numeric_strings/ |
H A D | array_offset.phpt | 33 Warning: Undefined array key "7.5" in %s on line %d 36 Warning: Undefined array key " 7" in %s on line %d 39 Warning: Undefined array key " 7.5" in %s on line %d 42 Warning: Undefined array key " 7 " in %s on line %d 48 Warning: Undefined array key "7 " in %s on line %d 51 Warning: Undefined array key "7.5 " in %s on line %d 54 Warning: Undefined array key "7str" in %s on line %d 57 Warning: Undefined array key "7.5str" in %s on line %d 78 Warning: Undefined array key "0xA" in %s on line %d 81 Warning: Undefined array key "0b10" in %s on line %d [all …]
|
/php-src/ext/sodium/tests/ |
H A D | crypto_stream_xchacha20.phpt | 10 $key = sodium_crypto_stream_xchacha20_keygen(); 13 $stream = sodium_crypto_stream_xchacha20($len, $nonce, $key); 16 $stream2 = sodium_crypto_stream_xchacha20($len, $nonce, $key); 19 $stream3 = sodium_crypto_stream_xchacha20($len, $nonce, $key); 21 $key = sodium_crypto_stream_keygen(); 22 $stream4 = sodium_crypto_stream_xchacha20($len, $nonce, $key); 31 $stream5 = sodium_crypto_stream_xchacha20_xor($stream, $nonce, $key); 33 $stream6 = sodium_crypto_stream_xchacha20_xor($stream5, $nonce, $key); 54 sodium_crypto_stream_xchacha20(-1, $nonce, $key); 59 sodium_crypto_stream_xchacha20($len, substr($nonce, 1), $key); [all …]
|
H A D | crypto_kdf.phpt | 7 $key = sodium_crypto_kdf_keygen(); 9 $subkey = sodium_crypto_kdf_derive_from_key(10, 0, "context!", $key); 14 $subkey = sodium_crypto_kdf_derive_from_key(100, 0, "context!", $key); 19 $subkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, 0, "context", $key); 24 $subkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, -1, "context!", $key); 29 …ubkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, 0, "context!", "short key"); 34 $subkey1 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 0, "context!", $key); 35 $subkey2 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 1, "context!", $key); 36 $subkey3 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 2, "context2", $key); 37 $subkey4 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 0, "context!", $key);
|
H A D | crypto_stream.phpt | 8 $key = sodium_crypto_stream_keygen(); 11 $stream = sodium_crypto_stream($len, $nonce, $key); 14 $stream2 = sodium_crypto_stream($len, $nonce, $key); 17 $stream3 = sodium_crypto_stream($len, $nonce, $key); 19 $key = sodium_crypto_stream_keygen(); 20 $stream4 = sodium_crypto_stream($len, $nonce, $key); 29 $stream5 = sodium_crypto_stream_xor($stream, $nonce, $key); 31 $stream6 = sodium_crypto_stream_xor($stream5, $nonce, $key); 36 sodium_crypto_stream($len, substr($nonce, 1), $key);
|
/php-src/ext/spl/tests/ |
H A D | iterator_013.phpt | 10 foreach($it as $key=>$val) 12 echo "$key=>$val\n"; 19 foreach($it as $key=>$val) 21 echo "$key=>$val\n"; 26 foreach($it as $key=>$val) 28 echo "$key=>$val\n"; 35 foreach(new NoRewindIterator($it) as $key=>$val) 37 echo "$key=>$val\n"; 42 foreach($it as $key=>$val) 44 echo "$key=>$val\n";
|
H A D | bug68128-USE_KEY.phpt | 6 $arrayIterator = new ArrayIterator(array('key 1' => 'value 1', 'key 2' => ['value 2'])); 7 $regexIterator = new RegexIterator($arrayIterator, '/^key/', RegexIterator::MATCH, RegexIterator::U… 9 foreach ($regexIterator as $key => $value) { 10 var_dump($key, $value); 15 string(5) "key 1" 17 string(5) "key 2"
|
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 …]
|
/php-src/ext/openssl/tests/ |
H A D | openssl_pkey_export_basic.phpt | 2 openssl_pkey_export() with EC key 12 $key = openssl_pkey_get_private('file://' . __DIR__ . '/private_ec.key'); 13 var_dump($key); 17 var_dump(openssl_pkey_export($key, $output, NULL, $config_arg)); 20 // Load the private key from the exported pem string 24 // Export key with passphrase 25 openssl_pkey_export($key, $output, 'passphrase', $config_arg); 30 // Read public key 31 $pKey = openssl_pkey_get_public('file://' . __DIR__ . '/public_ec.key'); 33 // The details are the same for a public or private key, expect the private key parameter 'd [all …]
|
H A D | openssl_free_key.phpt | 10 die("skip cannot create private key"); 14 echo "Creating private key\n"; 20 die("failed to create private key"); 27 echo "Export key to file\n"; 31 echo "Load key from file - array syntax\n"; 40 echo "Load key using direct syntax\n"; 64 Creating private key 65 Export key to file 66 Load key from file - array syntax 69 Load key using direct syntax [all …]
|
H A D | cipher_tests.inc | 5 'key' => '404142434445464748494a4b4c4d4e4f', 13 'key' => '404142434445464748494a4b4c4d4e4f', 26 'key' => '1bde3251d41a8b5ea013c195ae128b21' . 40 'key' => '00000000000000000000000000000000', 47 'key' => '00000000000000000000000000000000', 54 'key' => 'feffe9928665731c6d6a8f9467308308', 67 'key' => 'feffe9928665731c6d6a8f9467308308', 81 'key' => 'feffe9928665731c6d6a8f9467308308', 95 'key' => 'feffe9928665731c6d6a8f9467308308', 115 'key' => '000102030405060708090A0B0C0D0E0F', [all …]
|
/php-src/ext/dba/ |
H A D | dba_inifile.c | 56 if (!key) { in DBA_FETCH_FUNC() 60 ini_key = inifile_key_split(ZSTR_VAL(key)); /* keylen not needed here */ in DBA_FETCH_FUNC() 78 if (!key) { in DBA_UPDATE_FUNC() 82 ini_key = inifile_key_split(ZSTR_VAL(key)); /* keylen not needed here */ in DBA_UPDATE_FUNC() 111 if (!key) { in DBA_EXISTS_FUNC() 133 if (!key) { in DBA_DELETE_FUNC() 150 char *result = inifile_key_string(&dba->curr.key); in DBA_FIRSTKEY_FUNC() 153 return key; in DBA_FIRSTKEY_FUNC() 163 if (!dba->curr.key.group && !dba->curr.key.name) { in DBA_NEXTKEY_FUNC() 168 char *result = inifile_key_string(&dba->curr.key); in DBA_NEXTKEY_FUNC() [all …]
|
H A D | dba_tcadb.c | 91 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_size); in DBA_FETCH_FUNC() 107 if (tcadbvsiz(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key)) > -1) { in DBA_UPDATE_FUNC() 112 result = tcadbput(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), ZSTR_VAL(val), ZSTR_LEN(val)); in DBA_UPDATE_FUNC() 128 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_len); in DBA_EXISTS_FUNC() 141 return tcadbout(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key)) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC() 149 zend_string *key = NULL; in DBA_FIRSTKEY_FUNC() local 155 key = zend_string_init(value, value_size, /* persistent */ false); in DBA_FIRSTKEY_FUNC() 159 return key; in DBA_FIRSTKEY_FUNC() 167 zend_string *key = NULL; in DBA_NEXTKEY_FUNC() local 171 key = zend_string_init(value, value_size, /* persistent */ false); in DBA_NEXTKEY_FUNC() [all …]
|
/php-src/ext/hash/ |
H A D | hash_gost.c | 37 round(tables, key[0], key[1]) \ 38 round(tables, key[2], key[3]) \ 39 round(tables, key[4], key[5]) \ 40 round(tables, key[6], key[7]) \ 41 round(tables, key[0], key[1]) \ 42 round(tables, key[2], key[3]) \ 43 round(tables, key[4], key[5]) \ 44 round(tables, key[6], key[7]) \ 45 round(tables, key[0], key[1]) \ 46 round(tables, key[2], key[3]) \ [all …]
|
/php-src/ext/dba/libinifile/ |
H A D | inifile.h | 30 key_type key; member 44 val_type inifile_fetch(inifile *dba, const key_type *key, int skip); 47 int inifile_delete(inifile *dba, const key_type *key); 48 int inifile_delete_ex(inifile *dba, const key_type *key, bool *found); 49 int inifile_replace(inifile *dba, const key_type *key, const val_type *val); 50 int inifile_replace_ex(inifile *dba, const key_type *key, const val_type *val, bool *found); 51 int inifile_append(inifile *dba, const key_type *key, const val_type *val); 55 char * inifile_key_string(const key_type *key); 57 void inifile_key_free(key_type *key);
|
/php-src/Zend/tests/weakrefs/ |
H A D | weakmap_iteration.phpt | 9 foreach ($map as $key => $value) { 10 var_dump($key, $value); 20 foreach ($map as $key => $value) { 21 var_dump($key, $value); 25 foreach ($map as $key => $value) { 26 if (isset($obj1) && $key === $obj1) unset($obj1); 27 var_dump($key, $value); 31 foreach ($map as $key => &$value) { 66 ["key"]=> 74 ["key"]=>
|
/php-src/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-src/ext/standard/tests/array/ |
H A D | key_basic.phpt | 2 Test key() function : basic functionality 6 * Test basic functionality of key() 9 echo "*** Testing key() : basic functionality ***\n"; 13 var_dump(key($array)); 17 var_dump(key($array)); 21 var_dump(key($array)); 25 var_dump(key($array)); 28 *** Testing key() : basic functionality ***
|
H A D | key_variation4.phpt | 2 Test key() function : usage variations 6 * Test how key() behaves with muti-dimensional and recursive arrays 9 echo "*** Testing key() : usage variations ***\n"; 14 var_dump(key($multi_array)); 18 var_dump(key($multi_array)); 22 var_dump(key($multi_array)); 27 var_dump(key($multi_array[1])); 35 var_dump(key($multi_array)); 38 var_dump(key($multi_array[3][3][3])); 40 var_dump(key($multi_array[3][3][3][1])); [all …]
|
/php-src/ext/sysvshm/tests/ |
H A D | shutdown_crash_0.phpt | 2 Shutdown crash when attached/removed same key segment multiple times 8 /*$key = ftok(__FILE__, 't'); 9 var_dump($key);*/ 10 $key = 42; 12 var_dump($s = shm_attach($key, 1024)); 14 var_dump($s = shm_attach($key, 1024));
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_hash.c | 88 hash_value = zend_string_hash_val(key); in zend_accel_hash_update() 98 && zend_string_equals(entry->key, key)) { in zend_accel_hash_update() 135 entry->key = key; in zend_accel_hash_update() 147 hash_value = zend_string_hash_val(key); in zend_accel_hash_find_ex() 156 && zend_string_equals(entry->key, key)) { in zend_accel_hash_find_ex() 179 void* zend_accel_hash_find(zend_accel_hash *accel_hash, zend_string *key) in zend_accel_hash_find() argument 181 return zend_accel_hash_find_ex(accel_hash, key, 1); in zend_accel_hash_find() 189 return (zend_accel_hash_entry *)zend_accel_hash_find_ex(accel_hash, key, 0); in zend_accel_hash_find_entry() 192 int zend_accel_hash_unlink(zend_accel_hash *accel_hash, zend_string *key) in zend_accel_hash_unlink() argument 198 hash_value = zend_string_hash_val(key); in zend_accel_hash_unlink() [all …]
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | sbst.h | 20 lxb_char_t key; member 38 const lxb_char_t key) in lexbor_sbst_entry_static_find() argument 41 if (root->key == key) { in lexbor_sbst_entry_static_find() 44 else if (key > root->key) { in lexbor_sbst_entry_static_find()
|
/php-src/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-src/ext/sqlite3/tests/ |
H A D | gh11451.phpt | 8 ->query('SELECT 1 AS key, 2 AS key') 12 ->query('SELECT 0 AS dummy, 1 AS key, 2 AS key') 17 ["key"]=> 23 ["key"]=>
|