Description
What are you all doing to capture fatal PHP errors, such as allowed memory size exhausted? To capture this fatal error successfully, I had to comment out the
return FALSE;
in shouldCaptureFatalError():if (PHP_VERSION_ID >= 70000 && $type === E_ERROR) { // return false; }sample code:
<?php include '../vendor/autoload.php'; $client = new Raven_Client('...'); $client->install(); while (TRUE) { $a[] = 11111111111; }
It seems like this does prevent those errors from being reporting, however removing that seems to bring us back to the original issue causing 2 reports for the same error, likely caused by
sentry-php/lib/Raven/ErrorHandler.php
Line 84 in 25a2134
Parse error: syntax error, unexpected '}' in /private/var/www/sentry-php/error.php on line 5
Fatal error: Exception thrown without a stack frame in Unknown on line 0
Which are both reported, which is ofcourse incorrect.