Searched refs:hash (Results 1 - 25 of 42) sorted by relevance

12

/PHP_TRUNK/ext/ereg/regex/
H A Dregex2.h80 * and a mask to pick out the relevant bit of each byte. A hash code
91 uch hash; /* hash code */ member in struct:__anon72
96 #define CHadd(cs, c) ((cs)->ptr[(uch)(c)] |= (cs)->mask, (cs)->hash += (c))
97 #define CHsub(cs, c) ((cs)->ptr[(uch)(c)] &= ~(cs)->mask, (cs)->hash -= (c))
/PHP_TRUNK/ext/phar/phar/
H A Dpharcommand.inc68 'inf' => '<bang> Hash-bang line to start the archive (e.g. #!/usr/bin/php). The hash '
94 'inf' => '<method> Selects the hash algorithm.',
412 * Check whether hash method is valid.
416 function phar_check_hash($hash, $privkey)
418 switch($hash) {
565 $hash = $this->args['h']['val'];
574 $hash = self::phar_check_hash($hash, $privkey);
606 if ($hash) {
607 $phar->setSignatureAlgorithm($hash,
[all...]
/PHP_TRUNK/ext/standard/
H A Dcrypt_freesec.c747 char *hash; member in struct:__anon445
794 for (i = 0; tests[i].hash; i++) {
795 char *hash = crypt(tests[i].pw, tests[i].hash); local
796 if (!hash && strlen(tests[i].hash) < 13)
798 if (!strcmp(hash, tests[i].hash))
H A Darray.c1073 /* Iterate through hash */
1524 Creates a hash containing variables and their values */
1788 HashTable *hash; local
1797 hash = Z_ARRVAL_P(array);
1800 if (hash->nNumUsed != hash->nNumOfElements) {
1801 for (j = 0, idx = 0; idx < hash->nNumUsed; idx++) {
1802 p = hash->arData + idx;
1805 hash->arData[j] = *p;
1814 temp = hash
3170 HashTable *hash; local
3594 HashTable *hash; local
3964 HashTable* hash; local
[all...]
H A Dpassword.c60 static php_password_algo php_password_determine_algo(const char *hash, const size_t len) argument
62 if (len > 3 && hash[0] == '$' && hash[1] == '2' && hash[2] == 'y' && len == 60) {
178 char *hash, *algo_name; local
181 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hash, &hash_len) == FAILURE) {
186 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Supplied password hash too long to safely identify");
192 algo = php_password_determine_algo(hash, (size_t) hash_len);
199 sscanf(hash, "$2y$" ZEND_INT_FMT "$", &cost);
220 char *hash; local
275 char *password, *hash; local
309 char *hash_format, *hash, *salt, *password; local
[all...]
/PHP_TRUNK/ext/hash/
H A Dbench.php82 hash($algo, $data);
H A Dhash.c182 /* {{{ proto string hash(string algo, string data[, bool raw_output = false])
183 Generate a hash of a given input string
185 PHP_FUNCTION(hash)
192 Generate a hash of a given file
309 Generate a hash of a given input string with a key using HMAC
318 Generate a hash of a given file with a key using HMAC
336 php_hash_data *hash; local
358 hash = emalloc(sizeof(php_hash_data));
359 hash->ops = ops;
360 hash
397 php_hash_data *hash; local
418 php_hash_data *hash; local
455 php_hash_data *hash; local
488 php_hash_data *hash; local
552 php_hash_data *hash, *copy_hash; local
766 php_hash_data *hash = (php_hash_data*)rsrc->ptr; local
[all...]
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dst.c1 /* This is a public domain general purpose hash table package written by Peter Moore @ UCB. */
19 unsigned int hash; member in struct:st_table_entry
59 #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key))
219 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
270 entry->hash = hash_val;\
328 hash_val = ptr->hash % new_num_bins;
492 case ST_CHECK: /* check if hash is modified during iteration */
H A Dst.h1 /* This is a public domain general purpose hash table package written by Peter Moore @ UCB. */
21 int (*hash)(); member in struct:st_hash_type
/PHP_TRUNK/ext/dba/libcdb/
H A Dcdb_make.c63 c->hash = 0;
178 c->hash = c->split + c->numentries;
200 c->hash[u].h = c->hash[u].p = 0;
205 while (c->hash[where].p)
208 c->hash[where] = *hp++;
212 uint32_pack(buf, c->hash[u].h);
213 uint32_pack(buf + 4, c->hash[u].p);
H A Dcdb_make.h48 struct cdb_hp *split; /* includes space for hash */
49 struct cdb_hp *hash; member in struct:cdb_make
/PHP_TRUNK/ext/xml/
H A Dexpat_compat.h39 #include <libxml/hash.h>
/PHP_TRUNK/ext/session/
H A Dmod_mm.c49 php_uint32 hv; /* hash value of key */
59 ps_sd **hash; member in struct:__anon2
94 nhash = mm_calloc(data->mm, nmax + 1, sizeof(*data->hash));
97 /* no further memory to expand hash table */
101 ehash = data->hash + data->hash_max + 1;
102 for (ohash = data->hash; ohash < ehash; ohash++) {
109 mm_free(data->mm, data->hash);
111 data->hash = nhash;
141 sd->next = data->hash[slot];
142 data->hash[slo
[all...]
/PHP_TRUNK/ext/standard/html_tables/
H A Dhtml_table_gen.php645 * significantly slower than the hash tables for html 5 entities */
702 "/* {{{ $name hash table for entity -> codepoint */", "\n\n";
729 $hash = 5381; variable
734 $hash = (int)(((int)(((int)($hash << 5)) + $hash)) + ord($str[$pos++])) variable
737 return $hash;
794 "/* end of $name hash table for entity -> codepoint }}} */\n\n";
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.h91 zend_ulong hash; member in struct:_phpdbg_breakop_t
102 zend_ulong hash; member in struct:_phpdbg_breakcond_t
H A Dphpdbg_cmd.c288 zend_ulong hash = param->type; local
296 hash += zend_inline_hash_func(param->str, param->len);
300 hash += zend_inline_hash_func(param->method.class, strlen(param->method.class));
301 hash += zend_inline_hash_func(param->method.name, strlen(param->method.name));
305 hash += zend_inline_hash_func(param->file.name, strlen(param->file.name));
306 hash += param->file.line;
308 hash += param->num;
312 hash += param->addr;
316 hash += param->num;
320 hash
[all...]
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_convert.h24 void collator_convert_hash_from_utf8_to_utf16( HashTable* hash, UErrorCode* status );
25 void collator_convert_hash_from_utf16_to_utf8( HashTable* hash, UErrorCode* status );
H A Dcollator_convert.c44 HashTable* hash, zval *hashData, zend_string *hashKey, php_uint_t hashIndex,
65 /* Update current hash item with the converted value. */
74 zend_hash_update( hash, hashKey, &znew_val);
78 zend_hash_index_update( hash, hashIndex, &znew_val);
85 HashTable* hash, zval * hashData, zend_string* hashKey, php_uint_t hashIndex,
107 /* Update current hash item with the converted value. */
114 zend_hash_update( hash, hashKey, &znew_val);
118 zend_hash_index_update( hash, hashIndex, &znew_val);
124 * Convert values of the given hash from UTF-8 encoding to UTF-16LE.
126 void collator_convert_hash_from_utf8_to_utf16( HashTable* hash, UErrorCod argument
43 collator_convert_hash_item_from_utf8_to_utf16( HashTable* hash, zval *hashData, zend_string *hashKey, php_uint_t hashIndex, UErrorCode* status ) argument
84 collator_convert_hash_item_from_utf16_to_utf8( HashTable* hash, zval * hashData, zend_string* hashKey, php_uint_t hashIndex, UErrorCode* status ) argument
145 collator_convert_hash_from_utf16_to_utf8( HashTable* hash, UErrorCode* status ) argument
[all...]
H A Dcollator_sort.c39 zval* zstr; /* pointer to original string(hash-item) */
292 HashTable* hash = NULL; local
313 hash = HASH_OF( array );
316 collator_convert_hash_from_utf8_to_utf16( hash, COLLATOR_ERROR_CODE_P( co ) );
317 COLLATOR_CHECK_STATUS( co, "Error converting hash from UTF-8 to UTF-16" );
324 zend_hash_sort( hash, zend_qsort, collator_compare_func, renumber TSRMLS_CC );
330 collator_convert_hash_from_utf16_to_utf8( hash, COLLATOR_ERROR_CODE_P( co ) );
331 COLLATOR_CHECK_STATUS( co, "Error converting hash from UTF-16 to UTF-8" );
358 HashTable* hash = NULL; local
359 zval* hashData = NULL; /* currently processed item of input hash */
[all...]
/PHP_TRUNK/Zend/
H A Dzend_string.h230 * This is Daniel J. Bernstein's popular `times 33' hash function as
232 * like ``hash(i) = hash(i-1) * 33 + str[i]''. This is one of the best
233 * known hash functions for strings. Because it is both computed very
242 * all distribute in an acceptable way and this way fill a hash table
251 * or subtraction operation. And because a hash function has to both
262 register zend_uint_t hash = Z_UI(5381); local
264 /* variant with the hash unrolled eight times */
266 hash = ((hash <<
[all...]
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c885 char *c, hash[16], *args[] = { NULL, NULL, NULL, NULL, NULL }; local
928 PHP_MD5Final((unsigned char*)hash, &hash_context);
931 if ((le = zend_hash_str_find_ptr(&EG(regular_list), hash, sizeof(hash)-1)) != NULL) {
951 zend_hash_str_del(&EG(regular_list), hash, sizeof(hash)-1); local
962 if ((le = zend_hash_str_find_ptr(&EG(persistent_list), hash, sizeof(hash)-1)) != NULL) {
972 zend_hash_str_del(&EG(persistent_list), hash, sizeof(hash) local
[all...]
/PHP_TRUNK/ext/oci8/
H A Doci8_statement.c992 HashTable *hash = HASH_OF(bind->zval); local
994 zend_hash_internal_pointer_reset(hash);
1001 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
1004 zend_hash_move_forward(hash);
1012 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
1015 zend_hash_move_forward(hash);
1028 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
1040 zend_hash_move_forward(hash);
1064 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
1067 zend_hash_move_forward(hash);
1633 HashTable *hash; local
1703 HashTable *hash; local
1742 HashTable *hash; local
1781 HashTable *hash; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c116 HashTable hash; local
305 zend_hash_init(&hash, 16, NULL, NULL, 0);
349 if ((pos = zend_hash_index_find(&hash, Z_IVAL(op_array->literals[i]))) != NULL) {
354 zend_hash_index_update(&hash, Z_IVAL(op_array->literals[i]), &zv);
363 if ((pos = zend_hash_str_find(&hash, (char*)&Z_DVAL(op_array->literals[i]), sizeof(double))) != NULL) {
368 zend_hash_str_add(&hash, (char*)&Z_DVAL(op_array->literals[i]), sizeof(double), &zv);
400 (pos = zend_hash_find(&hash, key)) != NULL &&
417 zend_hash_add(&hash, key, &zv);
449 zend_hash_destroy(&hash);
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_module.c295 persistent_script = zend_accel_hash_find(&ZCSG(hash), filename, filename_len);
303 persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length);
426 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries);
428 snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries);
430 snprintf(buf, sizeof(buf), "%pd", ZCSG(hash).max_num_entries);
479 for (i = 0; i<ZCSG(hash).max_num_entries; i++) {
480 for (cache_entry = ZCSG(hash).hash_table[i]; cache_entry; cache_entry = cache_entry->next) {
562 add_assoc_int(&statistics, "num_cached_scripts", ZCSG(hash).num_direct_entries);
563 add_assoc_int(&statistics, "num_cached_keys", ZCSG(hash).num_entries);
564 add_assoc_int(&statistics, "max_cached_keys", ZCSG(hash)
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_observer.c136 zend_string *hash = STR_ALLOC(sizeof(zend_object*), 0); local
137 memcpy(hash->val, (void*)&Z_OBJ_P(obj), sizeof(zend_object*));
138 hash->val[hash->len] = '\0';
139 return hash;
151 char *hash = emalloc(hash_len + 1);
158 memcpy(hash, (char *)&zvalue, hash_len);
159 hash[hash_len] = 0;
165 return hash;
172 static void spl_object_storage_free_hash(spl_SplObjectStorage *intern, zend_string *hash) { argument
201 zend_string *hash = spl_object_storage_get_hash(intern, this, obj TSRMLS_CC); local
234 zend_string *hash = spl_object_storage_get_hash(intern, this, obj TSRMLS_CC); local
428 zend_string *hash = spl_object_storage_get_hash(intern, this, obj TSRMLS_CC); local
489 zend_string *hash; local
832 zend_string *hash; local
[all...]

Completed in 44 milliseconds

12