We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I needed to change this method, because my system (nginx+php5-fpm) i have $last_error['type'] = 4 instead of 1 (E_ERROR).
Can you give help me or give information about that, because i want to use rollbar if some syntax error appear.
public static function report_fatal_error() { // Catch any fatal errors that are causing the shutdown $last_error = error_get_last(); if (!is_null($last_error)) { $last_error['type'] = E_ERROR; switch ($last_error['type']) { case E_ERROR: self::$instance->report_php_error($last_error['type'], $last_error['message'], $last_error['file'], $last_error['line']); break; } } }
The text was updated successfully, but these errors were encountered:
Looks like we should add in a new case:
case
switch ($last_error['type']) { case E_PARSE: case E_ERROR: self::$instance->report_php_error($last_error['type'], $last_error['message'], $last_error['file'], $last_error['line']); break; }
@brianr look good?
Sorry, something went wrong.
Looks good to me.
Fixed in #56
Fix released in version 0.11.2 (now up on Packagist)
No branches or pull requests
Hi,
I needed to change this method, because my system (nginx+php5-fpm) i have $last_error['type'] = 4 instead of 1 (E_ERROR).
Can you give help me or give information about that, because i want to use rollbar if some syntax error appear.
The text was updated successfully, but these errors were encountered: