I have looked into a little bit of the Zend_Log, which is a log module of Zend Framework, but I didn't see it using a flock function to prevent a race condition if there are multiple php script writing to the same file. As per what I know, the web application based on the zend framework treat each request as a individual php process, so the state can't be shared between those process, so keep a write file action in sync is necessary.
Does anyone know the reason why?