How to catch fatal errors

From: Date: Mon, 16 Mar 2009 09:51:40 +0000
Subject: How to catch fatal errors
Groups: php.general 
Request: Send a blank email to php-general+get-290110@lists.php.net to get a copy of this message
Hello every body, I'm currently working on a very high traffic web sites. I often get a fatal error in production about memory "Allowed memory size of ... exhausted". Unfortunately, I can not reproduce this fatal error in developpement environment. The main reason for that is that I don't know the php script which causes the error. Php only tell me on which file, the error has appeared, but I don't know the orginal php script which were called. I've tried some hacks, like the register_shutdown_function one. This hack allows me to catch almost all fatal errors, except one which says "Allowed memory site of ..." Any idea about how to catch this error? My main issue is to know script that has been called. Best regards

« previous php.general (#290110) next »