- last mhash algo was missed
authorMichael Wallner <mike@php.net>
Tue, 20 Sep 2005 09:24:51 +0000 (09:24 +0000)
committerMichael Wallner <mike@php.net>
Tue, 20 Sep 2005 09:24:51 +0000 (09:24 +0000)
http_cache_api.c
http_response_object.c

index c7196c1891acb0018cadadce19e1cde8bcedff5f..0cab6d9d6744697b47df352466421814d06560e0 100644 (file)
@@ -48,7 +48,7 @@ STATUS _http_cache_global_init(INIT_FUNC_ARGS)
        {
                int l, i, c = mhash_count();
                
-               for (i = 0; i < c; ++i) {
+               for (i = 0; i <= c; ++i) {
                        char const_name[256] = {0};
                        const char *hash_name = mhash_get_hash_name_static(i);
                        
index ba1ae4073ef9991f805aacd681735f8d12fadbbc..61b3c82353220524775c7830ba036c8dcc7ccf11 100644 (file)
@@ -245,7 +245,7 @@ static inline void _http_response_object_declare_default_properties(TSRMLS_D)
        {
                int l, i, c = mhash_count();
                
-               for (i = 0; i < c; ++i) {
+               for (i = 0; i <= c; ++i) {
                        char const_name[256] = {0};
                        const char *hash_name = mhash_get_hash_name_static(i);