Changeset 20418

Show
Ignore:
Timestamp:
10/02/08 01:07:18 (3 months ago)
Author:
sabel
Message:

bugfix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/sabel/trunk/lib/UserCache.php

    r20334 r20418  
    3535  { 
    3636    $path = $this->getPath($userId); 
    37     $fp   = fopen($path, $mode); 
     37    $fp = fopen($path, $mode); 
     38    flock($fp, LOCK_EX); 
     39     
    3840    $data = $this->_read($path); 
    39      
    40     flock($fp, LOCK_EX); 
    4141    ftruncate($fp, 0); 
    4242