I got a weird issue I'm not able to fix.
I got the following code which gets called several times from different requests
if(file_exists("settings.ini"))
{
$ini = parse_ini_file("settings.ini", true);
// do things with $ini
}
as you can see I'm just parsing the ini file and this is the only place in my whole code where I'm touching this file. However sometimes the file_exists
-call returns false
(never the first time) even if I call clearstatcache
before. The file permission is set to 0755
.
Can anyone explain me why this is happening and how to avoid that?
Update
I've noticed that this is only happening if I'm using Firefox (V50). Chrome and IE working fine.