Changeset 35

Show
Ignore:
Timestamp:
12/25/04 11:40:04 (4 years ago)
Author:
everaldo_canuto
Message:

eaccelerator.name_space config parameter added. Patch 1090379

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r34 r35  
    44        Lyle Arnot for provide this files. 
    55        * eLoader added eLoader is a standalone loader for encode files. 
     6        * eaccelerator.name_space config parameter added. Patch 1090379 
    67 
    782004-12-24  Everaldo Canuto <everaldo_canuto at yahoo.com.br> 
  • eaccelerator/trunk/eaccelerator.c

    r31 r35  
    37433743 
    37443744static 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)); 
    37463761  if (len > 0) { 
    37473762    char* xkey; 
     
    48014816                  cache_dir, zend_eaccelerator_globals, eaccelerator_globals) 
    48024817PHP_INI_ENTRY("eaccelerator.filter",             "",  PHP_INI_ALL, eaccelerator_filter) 
     4818STD_PHP_INI_ENTRY("eaccelerator.name_space",      "", PHP_INI_SYSTEM, OnUpdateString, name_space, zend_eaccelerator_globals, eaccelerator_globals) 
    48034819PHP_INI_END() 
    48044820 
     
    49654981  eaccelerator_globals->session           = NULL; 
    49664982#endif 
     4983  eaccelerator_globals->name_space        = '\000'; 
    49674984  eaccelerator_globals->hostname[0]       = '\000'; 
    49684985  eaccelerator_globals->in_request        = 0; 
  • eaccelerator/trunk/eaccelerator.h

    r24 r35  
    147147  long          compress_level; 
    148148  char          *cache_dir; 
     149  char          *name_space; 
    149150  char          *mem; 
    150151  HashTable     strings;