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

12

/PHP_5_4/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_hash.h144 * return value, it assumes things about the order of the elements in the hash.
231 * This is Daniel J. Bernstein's popular `times 33' hash function as
233 * like ``hash(i) = hash(i-1) * 33 + str[i]''. This is one of the best
234 * known hash functions for strings. Because it is both computed very
243 * all distribute in an acceptable way and this way fill a hash table
252 * or subtraction operation. And because a hash function has to both
263 register ulong hash = 5381; local
265 /* variant with the hash unrolled eight times */
267 hash
[all...]
H A Dzend_ts_hash.h27 HashTable hash; member in struct:_zend_ts_hashtable
37 #define TS_HASH(table) (&(table->hash))
/PHP_5_4/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:__anon70
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_5_4/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_5_4/ext/standard/
H A Dcrypt_freesec.c747 char *hash; member in struct:__anon433
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.c1074 /* Iterate through hash */
1206 HashPosition pos; /* hash iterator */
1511 Creates a hash containing variables and their values */
1776 HashTable *hash; local
1786 hash = Z_ARRVAL_P(array);
1789 for (j = 0, temp = hash->pListHead; temp; temp = temp->pListNext)
1802 hash->pListHead = elems[0];
1803 hash->pListTail = NULL;
1804 hash->pInternalPointer = hash
2992 HashTable *hash; local
3410 HashTable *hash; local
3782 HashTable* hash; local
[all...]
/PHP_5_4/ext/hash/
H A Dbench.php82 hash($algo, $data);
H A Dhash.c187 /* {{{ proto string hash(string algo, string data[, bool raw_output = false])
188 Generate a hash of a given input string
190 PHP_FUNCTION(hash)
197 Generate a hash of a given file
274 /* Feed this result into the outter hash */
300 Generate a hash of a given input string with a key using HMAC
309 Generate a hash of a given file with a key using HMAC
327 php_hash_data *hash; local
349 hash = emalloc(sizeof(php_hash_data));
350 hash
388 php_hash_data *hash; local
409 php_hash_data *hash; local
446 php_hash_data *hash; local
479 php_hash_data *hash; local
543 php_hash_data *hash, *copy_hash; local
598 php_hash_data *hash = (php_hash_data*)rsrc->ptr; local
[all...]
H A Dphp_hash.h27 #define PHP_HASH_EXTNAME "hash"
120 PHP_FUNCTION(hash); variable
/PHP_5_4/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, int hashKeyType, char* hashKey, ulong hashIndex,
54 /* Get current hash item. */
55 zend_hash_get_current_data( hash, (void**) &hashData );
69 /* Update current hash item with the converted value. */
75 zend_hash_update( hash, hashKey, strlen( hashKey ) + 1,
80 zend_hash_index_update( hash, hashIndex,
88 HashTable* hash, int hashKeyType, char* hashKey, ulong hashIndex,
98 /* Get current hash item. */
99 zend_hash_get_current_data( hash, (void**) &hashData );
114 /* Update current hash ite
43 collator_convert_hash_item_from_utf8_to_utf16( HashTable* hash, int hashKeyType, char* hashKey, ulong hashIndex, UErrorCode* status ) argument
87 collator_convert_hash_item_from_utf16_to_utf8( HashTable* hash, int hashKeyType, char* hashKey, ulong hashIndex, UErrorCode* status ) argument
134 collator_convert_hash_from_utf8_to_utf16( HashTable* hash, UErrorCode* status ) argument
159 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
314 hash = HASH_OF( array );
317 collator_convert_hash_from_utf8_to_utf16( hash, COLLATOR_ERROR_CODE_P( co ) );
318 COLLATOR_CHECK_STATUS( co, "Error converting hash from UTF-8 to UTF-16" );
325 zend_hash_sort( hash, zend_qsort, collator_compare_func, renumber TSRMLS_CC );
331 collator_convert_hash_from_utf16_to_utf8( hash, COLLATOR_ERROR_CODE_P( co ) );
332 COLLATOR_CHECK_STATUS( co, "Error converting hash from UTF-16 to UTF-8" );
359 HashTable* hash = NULL; local
360 zval** hashData = NULL; /* currently processed item of input hash */
[all...]
/PHP_5_4/ext/mbstring/oniguruma/
H A Dst.c1 /* This is a public domain general purpose hash table package written by Peter Moore @ UCB. */
35 unsigned int hash; member in struct:st_table_entry
75 #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key))
235 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
286 entry->hash = hash_val;\
344 hash_val = ptr->hash % new_num_bins;
503 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. */
16 int (*hash)(); member in struct:st_hash_type
/PHP_5_4/ext/session/
H A Dmod_mm.c49 php_uint32 hv; /* hash value of key */
59 ps_sd **hash; member in struct:__anon196
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_5_4/ext/soap/
H A Dphp_http.c574 unsigned char hash[16]; local
579 PHP_MD5Final(hash, &md5ctx);
580 make_digest(cnonce, hash);
603 PHP_MD5Final(hash, &md5ctx);
604 make_digest(HA1, hash);
618 PHP_MD5Final(hash, &md5ctx);
619 make_digest(HA1, hash);
644 PHP_MD5Final(hash, &md5ctx);
645 make_digest(HA2, hash);
666 PHP_MD5Final(hash,
[all...]
/PHP_5_4/ext/xml/
H A Dexpat_compat.h39 #include <libxml/hash.h>
/PHP_5_4/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_5_4/ext/dom/
H A Dphp_dom.h39 #include <libxml/hash.h>
/PHP_5_4/ext/oci8/
H A Doci8_statement.c897 HashTable *hash = HASH_OF(bind->zval); local
899 zend_hash_internal_pointer_reset(hash);
906 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
909 zend_hash_move_forward(hash);
917 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
920 zend_hash_move_forward(hash);
933 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
944 zend_hash_move_forward(hash);
967 if ((i < bind->array.old_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) {
970 zend_hash_move_forward(hash);
1510 HashTable *hash; local
1579 HashTable *hash; local
1617 HashTable *hash; local
1655 HashTable *hash; local
[all...]
/PHP_5_4/ext/standard/html_tables/
H A Dhtml_table_gen.php642 * significantly slower than the hash tables for html 5 entities */
699 "/* {{{ $name hash table for entity -> codepoint */", "\n\n";
726 $hash = 5381; variable
731 $hash = (int)(((int)(((int)($hash << 5)) + $hash)) + ord($str[$pos++])) variable
734 return $hash;
791 "/* end of $name hash table for entity -> codepoint }}} */\n\n";
/PHP_5_4/ext/interbase/
H A Dinterbase.c895 char *c, hash[16], *args[] = { NULL, NULL, NULL, NULL, NULL }; local
938 PHP_MD5Final(hash, &hash_context);
941 if (SUCCESS == zend_hash_find(&EG(regular_list), hash, sizeof(hash), (void *) &le)) {
954 zend_hash_del(&EG(regular_list), hash, sizeof(hash)); local
959 switch (zend_hash_find(&EG(persistent_list), hash, sizeof(hash), (void *) &le)) {
977 zend_hash_del(&EG(persistent_list), hash, sizeof(hash)); local
[all...]
/PHP_5_4/ext/spl/
H A Dspl_observer.c120 char *hash = emalloc((hash_len+1)*sizeof(char)); local
121 strncpy(hash, Z_STRVAL_P(rv), hash_len);
122 hash[hash_len] = 0;
128 return hash;
149 char *hash = emalloc(hash_len + 1);
156 memcpy(hash, (char *)&zvalue, hash_len);
157 hash[hash_len] = 0;
163 return hash;
168 static void spl_object_storage_free_hash(spl_SplObjectStorage *intern, char *hash) { argument
170 efree(hash);
186 spl_object_storage_get(spl_SplObjectStorage *intern, char *hash, int hash_len TSRMLS_DC) argument
201 char *hash = spl_object_storage_get_hash(intern, this, obj, &hash_len TSRMLS_CC); local
229 char *hash = spl_object_storage_get_hash(intern, this, obj, &hash_len TSRMLS_CC); local
442 char *hash = spl_object_storage_get_hash(intern, this, obj, &hash_len TSRMLS_CC); local
487 char *hash; local
507 char *hash; local
840 char *hash; local
[all...]

Completed in 45 milliseconds

12