Searched defs:hash (Results 1 - 25 of 31) sorted by relevance

12

/PHP_TRUNK/Zend/
H A Dmicro_bench.php192 $hash = array('test' => 0); variable
194 $x = $hash['test'];
347 $t = end_test($t, '$x = $hash[\'v\']', $overhead);
H A Dzend_ts_hash.h27 HashTable hash; member in struct:_zend_ts_hashtable
37 #define TS_HASH(table) (&(table->hash))
H A Dzend_string.h226 * This is Daniel J. Bernstein's popular `times 33' hash function as
228 * like ``hash(i) = hash(i-1) * 33 + str[i]''. This is one of the best
229 * known hash functions for strings. Because it is both computed very
238 * all distribute in an acceptable way and this way fill a hash table
247 * or subtraction operation. And because a hash function has to both
258 register zend_ulong hash = Z_UL(5381); local
260 /* variant with the hash unrolled eight times */
262 hash = ((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 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) {
187 algo = php_password_determine_algo(hash, (size_t) hash_len);
194 sscanf(hash, "$2y$" ZEND_LONG_FMT "$", &cost);
215 char *hash; local
219 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|H", &hash,
265 char *password, *hash; local
299 char *hash_format, *hash, *salt, *password; local
[all...]
H A Dhtml.c859 zend_ulong hash = zend_inline_hash_func(start, length); local
861 s = ht->buckets[hash % ht->num_elems];
/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/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:__anon4
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/dba/libcdb/
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/hash/
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
337 php_hash_data *hash; local
359 hash = emalloc(sizeof(php_hash_data));
360 hash->ops = ops;
361 hash
398 php_hash_data *hash; local
419 php_hash_data *hash; local
456 php_hash_data *hash; local
489 php_hash_data *hash; local
553 php_hash_data *hash, *copy_hash; local
767 php_hash_data *hash = (php_hash_data*)rsrc->ptr; local
[all...]
H A Dphp_hash.h26 #define PHP_HASH_EXTNAME "hash"
128 PHP_FUNCTION(hash); variable
/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/intl/collator/
H A Dcollator_convert.c44 HashTable* hash, zval *hashData, zend_string *hashKey, zend_ulong 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, zend_ulong 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, zend_ulong hashIndex, UErrorCode* status ) argument
84 collator_convert_hash_item_from_utf16_to_utf8( HashTable* hash, zval * hashData, zend_string* hashKey, zend_ulong 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/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) && (entry = zend_hash_get_current_data(hash)) != NULL) {
1004 zend_hash_move_forward(hash);
1012 if ((i < bind->array.old_length) && (entry = zend_hash_get_current_data(hash)) != NULL) {
1015 zend_hash_move_forward(hash);
1028 if ((i < bind->array.old_length) && (entry = zend_hash_get_current_data(hash)) != NULL) {
1040 zend_hash_move_forward(hash);
1064 if ((i < bind->array.old_length) && (entry = zend_hash_get_current_data(hash)) != NULL) {
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/session/
H A Dmod_mm.c49 php_uint32 hv; /* hash value of key */
59 ps_sd **hash; member in struct:__anon193
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/sqlite3/
H A Dsqlite3.c1351 HashTable *hash; local
1352 hash = stmt->bound_params;
1354 if (!hash) {
1355 ALLOC_HASHTABLE(hash);
1356 zend_hash_init(hash, 13, NULL, sqlite3_param_dtor, 0);
1357 stmt->bound_params = hash;
1381 zend_hash_index_del(hash, param->param_number);
1385 zend_hash_update_mem(hash, param->name, param, sizeof(struct php_sqlite3_bound_param));
1387 zend_hash_index_update_mem(hash, param->param_number, param, sizeof(struct php_sqlite3_bound_param));
/PHP_TRUNK/ext/standard/html_tables/
H A Dhtml_table_gen.php644 * significantly slower than the hash tables for html 5 entities */
701 "/* {{{ $name hash table for entity -> codepoint */", "\n\n";
728 $hash = 5381; variable
733 $hash = (int)(((int)(((int)($hash << 5)) + $hash)) + ord($str[$pos++])) variable
736 return $hash;
793 "/* end of $name hash table for entity -> codepoint }}} */\n\n";
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c660 zend_ulong hash = zend_hash_func(name, name_len); local
662 if (zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash)) {
669 new_break.hash = hash;
672 zend_hash_index_update(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash,
700 static inline void phpdbg_create_conditional_break(phpdbg_breakcond_t *brake, const phpdbg_param_t *param, const char *expr, size_t expr_len, zend_ulong hash TSRMLS_DC) /* {{{ */
707 new_break.hash = hash;
739 &PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash, &new_break,
773 zend_ulong hash local
[all...]
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/soap/
H A Dphp_http.c630 unsigned char hash[16]; local
635 PHP_MD5Final(hash, &md5ctx);
636 make_digest(cnonce, hash);
659 PHP_MD5Final(hash, &md5ctx);
660 make_digest(HA1, hash);
674 PHP_MD5Final(hash, &md5ctx);
675 make_digest(HA1, hash);
700 PHP_MD5Final(hash, &md5ctx);
701 make_digest(HA2, hash);
722 PHP_MD5Final(hash,
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_observer.c136 zend_string *hash = zend_string_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...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c126 HashTable hash; local
324 zend_hash_init(&hash, op_array->last_literal, NULL, NULL, 0);
368 if ((pos = zend_hash_index_find(&hash, Z_LVAL(op_array->literals[i]))) != NULL) {
373 zend_hash_index_add_new(&hash, Z_LVAL(op_array->literals[i]), &zv);
382 if ((pos = zend_hash_str_find(&hash, (char*)&Z_DVAL(op_array->literals[i]), sizeof(double))) != NULL) {
387 zend_hash_str_add(&hash, (char*)&Z_DVAL(op_array->literals[i]), sizeof(double), &zv);
419 (pos = zend_hash_find(&hash, key)) != NULL &&
436 zend_hash_add_new(&hash, key, &zv);
468 zend_hash_destroy(&hash);

Completed in 44 milliseconds

12