Is SPLFileObject atomic?
- by Jakub Lédl
I'm wondering whether methods of PHPs SPLFileObject are atomic (e.g. thread-safe) or not?
If they aren't, I'll implement my own class, which will use flock(), but is this enough? Is the flock function really thread-safe? What if the collision occurs after I fopen() the file, but before I flock() it?