8000 [Debug] Fix populating error_get_last() for handled silent errors by nicolas-grekas · Pull Request #27237 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

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

0