Changeset 350 for eaccelerator/trunk/content.c
- Timestamp:
- 06/20/08 11:20:20 (6 months ago)
- Files:
-
- eaccelerator/trunk/content.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/content.c
r344 r350 157 157 memcpy(cache_content, content, sizeof(zval)); 158 158 zval_copy_ctor(cache_content); 159 cache_content->is_ref = 0; 160 cache_content->refcount = 1; 159 INIT_PZVAL(cache_content); 161 160 add_assoc_zval(&cache_array, "content", cache_content); 162 161 eaccelerator_put(key, key_len , &cache_array, ttl, eaccelerator_content_cache_place TSRMLS_CC); … … 493 492 char* zkey; 494 493 int zkey_len; 494 #ifdef ZEND_ENGINE_2_3 495 ALLOCA_FLAG(use_heap) 496 #endif 495 497 496 498 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, … … 501 503 RETURN_NULL(); 502 504 } 505 #ifdef ZEND_ENGINE_2_3 506 zkey = do_alloca(key_len+16, use_heap); 507 #else 503 508 zkey = do_alloca(key_len+16); 509 #endif 504 510 eaccelerator_rm(key, key_len, eaccelerator_content_cache_place TSRMLS_CC); 505 511 zkey_len = sizeof("gzip_") + key_len - 1;