[commits] Horde branch master updated. f779169adf0dd30413df3430130536f138abe227

Michael M Slusarz slusarz at horde.org
Mon Aug 12 21:17:10 UTC 2013


The branch "master" has been updated.
The following is a summary of the commits.

from: f582f0c9e895ab734f4c9c45f528af33747da86b

18ef62d File based SessionHandler: Fix unlikely data corruption due to file creation race
f779169 [mms] Fix rare race condition when creating file-based session data for the first time (Thomas Jarosch <thomas.jarosch at intra2net.com; Bug #12557).

-----------------------------------------------------------------------

commit 18ef62d7ac1a5397803137e2d1887850a80b33bf
Author: Thomas Jarosch <thomas.jarosch at intra2net.com>
Date:   Sat Aug 10 13:52:42 2013 +0200

    File based SessionHandler: Fix unlikely data corruption due to file creation race
    
    There is a small time window between is_readable() returns true
    and another process creates the file at the same time.
       -> we would truncate the data of the other process.
    
    Fix it by using 'c+' fopen() mode which is available since PHP 5.2.6.
    (Minimum PHP version for Horde is 5.3.0)
    
    For those interested in the details of the PHP open modes, look for the
        PHPAPI int php_stream_parse_fopen_modes(const char *mode, int *open_flags)
    function in the PHP source code.
    
    Signed-off-by: Michael M Slusarz <slusarz at horde.org>
    
    Bug #12557

 .../SessionHandler/lib/Horde/SessionHandler/Storage/File.php      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/18ef62d7ac1a5397803137e2d1887850a80b33bf

-----------------------------------------------------------------------

commit f779169adf0dd30413df3430130536f138abe227
Author: Michael M Slusarz <slusarz at horde.org>
Date:   Mon Aug 12 15:15:53 2013 -0600

    [mms] Fix rare race condition when creating file-based session data for the first time (Thomas Jarosch <thomas.jarosch at intra2net.com; Bug #12557).

 framework/SessionHandler/package.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/f779169adf0dd30413df3430130536f138abe227




More information about the commits mailing list