Changeset 35
- Timestamp:
- 12/25/04 11:40:04 (4 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.c (modified) (3 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r34 r35 4 4 Lyle Arnot for provide this files. 5 5 * eLoader added eLoader is a standalone loader for encode files. 6 * eaccelerator.name_space config parameter added. Patch 1090379 6 7 7 8 2004-12-24 Everaldo Canuto <everaldo_canuto at yahoo.com.br> eaccelerator/trunk/eaccelerator.c
r31 r35 3743 3743 3744 3744 static char* build_key(const char* key, int key_len, int *xlen TSRMLS_DC) { 3745 int len = strlen(MMCG(hostname)); 3745 int len; 3746 3747 /* namespace */ 3748 len = strlen(MMCG(name_space)); 3749 if (len > 0) { 3750 char* xkey; 3751 *xlen = len + key_len + 1; 3752 xkey = emalloc((*xlen)+1); 3753 memcpy(xkey, MMCG(name_space), len); 3754 xkey[len] = ':'; 3755 memcpy(xkey+len+1, key, key_len+1); 3756 return xkey; 3757 } 3758 3759 /* hostname */ 3760 len = strlen(MMCG(hostname)); 3746 3761 if (len > 0) { 3747 3762 char* xkey; … … 4801 4816 cache_dir, zend_eaccelerator_globals, eaccelerator_globals) 4802 4817 PHP_INI_ENTRY("eaccelerator.filter", "", PHP_INI_ALL, eaccelerator_filter) 4818 STD_PHP_INI_ENTRY("eaccelerator.name_space", "", PHP_INI_SYSTEM, OnUpdateString, name_space, zend_eaccelerator_globals, eaccelerator_globals) 4803 4819 PHP_INI_END() 4804 4820 … … 4965 4981 eaccelerator_globals->session = NULL; 4966 4982 #endif 4983 eaccelerator_globals->name_space = '\000'; 4967 4984 eaccelerator_globals->hostname[0] = '\000'; 4968 4985 eaccelerator_globals->in_request = 0; eaccelerator/trunk/eaccelerator.h
r24 r35 147 147 long compress_level; 148 148 char *cache_dir; 149 char *name_space; 149 150 char *mem; 150 151 HashTable strings;