Changeset 109

Show
Ignore:
Timestamp:
06/23/05 19:29:45 (3 years ago)
Author:
zoeloelip
Message:

Added a warning message when php scripts have a modification time in

in the future and the debug is enabled.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r108 r109  
     12005-06-23 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Added a warning message when php scripts have a modification time in 
     4          in the future and the debug is enabled. 
     5 
    162005-06-20 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     7 
    28        * Set the test value shared memory to 32mb instead of 64mb because the 
    39          test will fail on 2.6 kernels where 32mb is the default value. (#1203253) 
  • eaccelerator/trunk/eaccelerator.c

    r106 r109  
    29962996  MMCG(xpad)+=2; 
    29972997#endif 
     2998  compile_time = time(0); 
     2999  if (buf.st_mtime <= compile_time && eaccelerator_debug > 0) { 
     3000        debug_printf("[%d] EACCELERATOR: \"%s\" isn't cached because it's mtime is in the future.\n",  
     3001                getpid(), file_handle->filename); 
     3002  } 
     3003 
    29983004  if (!MMCG(enabled) || 
    29993005      (eaccelerator_mm_instance == NULL) || 
     
    30023008      file_handle->filename == NULL || 
    30033009      eaccelerator_stat(file_handle, realname, &buf TSRMLS_CC) != 0 || 
    3004       buf.st_mtime >= (compile_time = time(0)) || 
     3010      buf.st_mtime >= compile_time || 
    30053011#ifdef EACCELERATOR_USE_INODE 
    30063012      0) {