Skip to content

incorrect set_error_handler signature  #75

Description

@fprochazka

the custom error handler

set_error_handler(function ($errno, $errstr, $errfile, $errline, array $errcontext): bool {

must have the $errcontext optional, see https://github.com/getsentry/sentry-php/blob/6bf81be28f8557ce22e16502256a21332478e949/src/ErrorHandler.php#L257-L273

otherwise, the real error is swallowed and the error in error handler is reported instead

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions