Skip to content

[Debug] Fix populating error_get_last() for handled silent errors #27237

New issue

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

Merged
merged 1 commit into from
May 14, 2018

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

When a userland error handler doesn't return false, error_get_last() is not updated, so we cannot see the real last error, but the previous one.

See https://3v4l.org/Smmt7

@fabpot
Copy link
Member

fabpot commented May 14, 2018

Thank you @nicolas-grekas.

@fabpot fabpot merged commit d7e612d into symfony:2.7 May 14, 2018
fabpot added a commit that referenced this pull request May 14, 2018
… errors (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Debug] Fix populating error_get_last() for handled silent errors

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

When a userland error handler doesn't return `false`, `error_get_last()` is not updated, so we cannot see the real last error, but the previous one.

See https://3v4l.org/Smmt7

Commits
-------

d7e612d [Debug] Fix populating error_get_last() for handled silent errors
@nicolas-grekas nicolas-grekas deleted the debug-populate-last-error branch May 16, 2018 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants