6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/16/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12557] File based SessionHandler: Fix unlikely data corruption due to file creation race
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ..___.. ,. | ||_/ _/ \./ | |__|| \./__. | |___
Comment
> From the patch: > > 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. >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers