Changeset 86 for trunk/xcache.c


Ignore:
Timestamp:
2006-07-08T02:44:27+02:00 (8 years ago)
Author:
moo
Message:

fixes #14, #17, #18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r82 r86  
    630630    } 
    631631 
    632     if (php_check_open_basedir(filename TSRMLS_CC) != 0) { 
    633         return NULL; 
    634     } 
    635  
    636632    stored_xce = NULL; 
    637633    op_array = NULL; 
     
    693689    } 
    694690 
     691    filename = h->opened_path ? h->opened_path : h->filename; 
     692    if (xce.name.str.val != filename) { 
     693        xce.name.str.val = filename; 
     694        xce.name.str.len = strlen(filename); 
     695    } 
     696 
    695697#ifdef HAVE_XCACHE_OPTIMIZER 
    696698    if (XG(optimizer)) { 
     
    780782 
    781783restore: 
     784    if (php_check_open_basedir(stored_xce->name.str.val TSRMLS_CC) != 0) { 
     785        return NULL; 
     786    } 
     787 
    782788#ifdef DEBUG 
    783789    fprintf(stderr, "restoring\n"); 
Note: See TracChangeset for help on using the changeset viewer.