PHP logging and concurrency
| From: | HP-Cupertino,ex1) | Date: | Fri, 16 May 2003 00:53:10 +0000 |
| Subject: | PHP logging and concurrency | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-1552@lists.php.net to get a copy of this message | ||
Looking at the sources I was surprised to see concurrency problems with
logging.
Multiple processes/threads seem to freely open, write and close the log file
without
bothering about any synchronization.
The function php_log_error() seems to be the function that finally writes to
the
the log file specified in php.ini.
This implementation could lead to a loss of logging information on heavy
loads.
Would that be correct ? If so, perhaps I (or someone else) could work on
fixing it.
-- Roshan