pernest Posted January 23, 2010 Share Posted January 23, 2010 Hi, I am new to error handling, (Usually I just don't bother!). I have been trying to use the set_error_handler function to create a custom error handler, it works nicely for simple errors. However with the following error (resulting from using up too much memory whilst processing an image), it doesn't get called. Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 3800 bytes) Is there any way I can handle this sort of error? Many thanks Link to comment https://forums.phpfreaks.com/topic/189571-error-handling/ Share on other sites More sharing options...
pernest Posted January 24, 2010 Author Share Posted January 24, 2010 My gut feeling is that this is an error outside of php, the server squealing and not the script. If it is, is there anything I can do to handle this error elegantly? Link to comment https://forums.phpfreaks.com/topic/189571-error-handling/#findComment-1000604 Share on other sites More sharing options...
pernest Posted January 24, 2010 Author Share Posted January 24, 2010 After a little more digging, it turns out that the error is a php error, but that it can't be handled by a custom error handler. Link to comment https://forums.phpfreaks.com/topic/189571-error-handling/#findComment-1000606 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.