browscap/browscap-php — pull request #60 by Sazpaimon (2014-11-16 20:57:40+00:00)
Title: Give temporary names to the temporary files to prevent race conditions.

In a race condition, multiple browscap instances could be simultaneously running before the lock file is created (due to the fact that the lock isn't an exclusive one). This should prevent any weirdness from happening due to writing to the same file. I also changed instances of time() to microtime() for the same reason.

I don't know if this makes the cachePropertiesFilename, cacheBrowserFilename, etc properties useless, but I kept them there anyway.