I wrote an error handler for my website that looks like this:
function errorHandler($number, $string, $file, $line, $context, $type = '') {
}
What I am registering like this:
set_error_handler('errorHandler', E_ALL);
I save all the passed variables to the DB as well as the return line to help me debug the problem:
print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT), true)
The problem is that I sometimes get this error:
The allowed memory size of 134217728 bytes has been exhausted (tried to allocate 30084081 bytes)
, , , , undefined Amazon S3 ( PHP AWS). , , Amazon AWS , , (?).
backtrace, , , debug_backtrace() - ( , )?