Changeset 237 for eaccelerator/trunk/cache.c
- Timestamp:
- 07/24/06 14:49:43 (2 years ago)
- Files:
-
- eaccelerator/trunk/cache.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/cache.c
r207 r237 270 270 mm_file_header hdr; 271 271 EACCELERATOR_FLOCK(f, LOCK_EX); 272 strncpy(hdr.magic, "EACCELERATOR", 8);272 strncpy(hdr.magic, EA_MAGIC, 8); 273 273 hdr.eaccelerator_version = binary_eaccelerator_version; 274 274 hdr.zend_version = binary_zend_version; … … 392 392 393 393 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 || 395 395 hdr.eaccelerator_version != binary_eaccelerator_version || hdr.zend_version != binary_zend_version 396 396 || hdr.php_version != binary_php_version) {