Changeset 215

Show
Ignore:
Timestamp:
06/21/06 21:02:56 (2 years ago)
Author:
bart
Message:

* Branched the 0.9.4 release to fix win32
* Fixes from Simon Westwood

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/branches/0.9.4/ChangeLog

    r159 r215  
     12006-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 
    162006-02-15 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
    27 
  • eaccelerator/branches/0.9.4/cache.c

    r123 r215  
    3636#include "zend_API.h" 
    3737#include "zend_extensions.h" 
     38#include "ea_restore.h" 
    3839 
    3940#include <fcntl.h> 
  • eaccelerator/branches/0.9.4/debug.c

    r144 r215  
    7373} 
    7474 
    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  
    10675/** 
    10776 * Print a log message that will be print when the debug level is 
     
    11988        va_end (args); 
    12089 
    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 
    12999    } 
    130100} 
  • eaccelerator/branches/0.9.4/ea_restore.h

    r124 r215  
    3535void fixup_class_entry (eaccelerator_class_entry * from TSRMLS_DC); 
    3636 
     37void restore_zval(zval *zv TSRMLS_DC); 
    3738void restore_class(mm_fc_entry *p TSRMLS_DC); 
    3839void restore_function(mm_fc_entry *p TSRMLS_DC); 
  • eaccelerator/branches/0.9.4/eaccelerator.h

    r140 r215  
    6565 
    6666#include "mm.h" 
     67#endif 
     68 
    6769 
    6870#ifdef EACCELERATOR_WITHOUT_FILE_LOCKING 
     71# include <xxxx1.c> 
    6972#  ifndef LOCK_SH 
    7073#    define LOCK_SH 1 
     
    105108                                   }} 
    106109#  endif 
    107 #endif 
     110 
    108111 
    109112#ifdef ZEND_WIN32 
     
    389392void store_zval (zval * z TSRMLS_DC); 
    390393void fixup_zval (zval * z TSRMLS_DC); 
    391 void restore_zval (zval * TSRMLS_DC); 
     394//void restore_zval (zval * TSRMLS_DC); 
    392395 
    393396unsigned int hash_mm(const char *data, int len);  
  • eaccelerator/branches/0.9.4/loader.c

    r127 r215  
    4040#include "ea_restore.h" 
    4141#include <math.h> 
     42 
     43 
     44 
     45 
     46#ifdef HAVE_EACCELERATOR_STANDALONE_LOADER 
     47zend_extension* ZendOptimizer = NULL; 
     48#endif 
     49 
    4250 
    4351typedef struct loader_data {