Show
Ignore:
Timestamp:
07/24/06 14:49:43 (2 years ago)
Author:
bart
Message:

* Make clean routine support dir hashing. Again, this should be tested on win32!
* Use a define for the magic string in the eAccelerator file headers
* Bump up version to 0.9.5-rc1
* Put -O2 back on for -rc1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/cache.c

    r207 r237  
    270270                mm_file_header hdr; 
    271271                EACCELERATOR_FLOCK(f, LOCK_EX); 
    272                 strncpy(hdr.magic, "EACCELERATOR", 8); 
     272                strncpy(hdr.magic, EA_MAGIC, 8); 
    273273                hdr.eaccelerator_version = binary_eaccelerator_version; 
    274274                hdr.zend_version = binary_zend_version; 
     
    392392 
    393393            EACCELERATOR_FLOCK(f, LOCK_SH); 
    394             if (read(f, &hdr, sizeof(hdr)) != sizeof(hdr) || strncmp(hdr.magic, "EACCELERATOR", 8) != 0 ||  
     394            if (read(f, &hdr, sizeof(hdr)) != sizeof(hdr) || strncmp(hdr.magic, EA_MAGIC, 8) != 0 ||  
    395395                    hdr.eaccelerator_version != binary_eaccelerator_version || hdr.zend_version != binary_zend_version  
    396396                    || hdr.php_version != binary_php_version) {