Skip to content

incorrect set_error_handler signature  #75

@fprochazka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions