This link was posted before and explains everything in detail:
http://bugs.php.net/bug.php?id=38915
I'm not going to write a complete shorter version, mostly because they are still discussing about it, but here is a stripped version:
- the module version of PHP (any version) for Apache, mod_php, doesn't use a couple of special functions provided by Apache (any version) to execute properly any program
- PHP developers feel like Apache should do it internally instead of asking the module developers to use them
- exim is written to be a fast and lightweight program, therefore doesn't support too many "open files" (sockets or files being open by the program) and freezes if it happens
- when sending and email, Apache through mod_php launches "exim" in the wrong way, passing his open files handlers, and if you have
a lot of domains therefore a lot of logs, or if you have
a lot of clients connected, well you will have a lot of open files... and exim freezes
- being exim freezed, when Apache has to be restarted (for any reason), it ignores the SIGCHILD sent by his "httpd" parent process and stays alive, always attached to the same open files, from which there is also the TCP socket on port 80 and/or 443
Solutions are all stated within the bug report. There are only workarounds for the moment. I suggest using FastCGI.