Changeset 215
- Timestamp:
- 06/21/06 21:02:56 (2 years ago)
- Files:
-
- eaccelerator/branches/0.9.4/.cvsignore (deleted)
- eaccelerator/branches/0.9.4/ChangeLog (modified) (1 diff)
- eaccelerator/branches/0.9.4/cache.c (modified) (1 diff)
- eaccelerator/branches/0.9.4/debug.c (modified) (2 diffs)
- eaccelerator/branches/0.9.4/ea_restore.h (modified) (1 diff)
- eaccelerator/branches/0.9.4/eaccelerator.h (modified) (3 diffs)
- eaccelerator/branches/0.9.4/loader.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/branches/0.9.4/ChangeLog
r159 r215 1 2006-06-21 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * Branched the 0.9.4 release to fix win32 4 * Fixes from Simon Westwood 5 1 6 2006-02-15 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 7 eaccelerator/branches/0.9.4/cache.c
r123 r215 36 36 #include "zend_API.h" 37 37 #include "zend_extensions.h" 38 #include "ea_restore.h" 38 39 39 40 #include <fcntl.h> eaccelerator/branches/0.9.4/debug.c
r144 r215 73 73 } 74 74 75 /* lock the log file, don't lock stderr */76 static void ea_debug_lock() {77 int rc;78 struct flock l;79 if (F_fp != stderr) {80 l.l_whence = SEEK_SET;81 l.l_start = 0;82 l.l_len = 0;83 l.l_pid = 0;84 l.l_type = F_WRLCK;85 do {86 rc = fcntl(file_no, F_SETLKW, &l);87 } while (rc < 0 && errno == EINTR);88 }89 }90 91 static void ea_debug_unlock() {92 int rc;93 struct flock l;94 if (F_fp != stderr) {95 l.l_whence = SEEK_SET;96 l.l_start = 0;97 l.l_len = 0;98 l.l_pid = 0;99 l.l_type = F_UNLCK;100 do {101 rc = fcntl(file_no, F_SETLKW, &l);102 } while (rc < 0 && errno == EINTR);103 }104 }105 106 75 /** 107 76 * Print a log message that will be print when the debug level is … … 119 88 va_end (args); 120 89 121 ea_debug_lock(); 122 #ifdef ZEND_WIN32 123 OutputDebugString (output_buf); 124 #else 125 fputs (output_buf, F_fp); 126 fflush (F_fp); 127 #endif 128 ea_debug_unlock(); 90 if (F_fp != stderr) { 91 EACCELERATOR_FLOCK(file_no, LOCK_EX); 92 } 93 fputs (output_buf, F_fp); 94 fflush (F_fp); 95 if (F_fp != stderr) { 96 EACCELERATOR_FLOCK(file_no, LOCK_UN); 97 } 98 129 99 } 130 100 } eaccelerator/branches/0.9.4/ea_restore.h
r124 r215 35 35 void fixup_class_entry (eaccelerator_class_entry * from TSRMLS_DC); 36 36 37 void restore_zval(zval *zv TSRMLS_DC); 37 38 void restore_class(mm_fc_entry *p TSRMLS_DC); 38 39 void restore_function(mm_fc_entry *p TSRMLS_DC); eaccelerator/branches/0.9.4/eaccelerator.h
r140 r215 65 65 66 66 #include "mm.h" 67 #endif 68 67 69 68 70 #ifdef EACCELERATOR_WITHOUT_FILE_LOCKING 71 # include <xxxx1.c> 69 72 # ifndef LOCK_SH 70 73 # define LOCK_SH 1 … … 105 108 }} 106 109 # endif 107 #endif 110 108 111 109 112 #ifdef ZEND_WIN32 … … 389 392 void store_zval (zval * z TSRMLS_DC); 390 393 void fixup_zval (zval * z TSRMLS_DC); 391 void restore_zval (zval * TSRMLS_DC);394 //void restore_zval (zval * TSRMLS_DC); 392 395 393 396 unsigned int hash_mm(const char *data, int len); eaccelerator/branches/0.9.4/loader.c
r127 r215 40 40 #include "ea_restore.h" 41 41 #include <math.h> 42 43 44 45 46 #ifdef HAVE_EACCELERATOR_STANDALONE_LOADER 47 zend_extension* ZendOptimizer = NULL; 48 #endif 49 42 50 43 51 typedef struct loader_data {