Skip to content

[Debug] cleanup interfaces before 2.5-final #10941

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 2 commits into from
May 21, 2014

Conversation

nicolas-grekas
Copy link
Member

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

This PR is targeted at cleaning up interfaces before 2.5 final:

  • ExceptionHandlerInterface has never been released in a stable Symfony, lets drop it, not deprecate it,
  • generalize a little bit how fatal errors are handled and make them take the same path as uncaught exceptions,
  • enhance handling of out of memory situations.

@nicolas-grekas
Copy link
Member Author

Call for review:
This PR is now a two in one: cleanup and OOM bug fix.
I just added a commit for better handling of out of memory situations.
This should prevent some remaining blank pages.

$trace = array();
}

$this->setTrace($trace);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why duplicating all this logic here, while it is already done by the parent class ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I'll add an argument to the constructor instead

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a difference in the logic in both cases ? I haven't checked the code locally to be able to compare both files easily

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, saw it. It is the usage of params in the trace

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@nicolas-grekas
Copy link
Member Author

Any comment here? Otherwise @fabpot this is 👍 for merge in 2.5 on my side

* Sets a user exception handler.
*
* @param callable $handler An handler that will be called on Exception
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing documentation for @return

@fabpot
Copy link
Member

fabpot commented May 21, 2014

Thank you @nicolas-grekas.

@fabpot fabpot merged commit e3255bf into symfony:master May 21, 2014
fabpot added a commit that referenced this pull request May 21, 2014
…rekas)

This PR was merged into the 2.4-dev branch.

Discussion
----------

[Debug] cleanup interfaces before 2.5-final

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

This PR is targeted at cleaning up interfaces before 2.5 final:
- ExceptionHandlerInterface has never been released in a stable Symfony, lets drop it, not deprecate it,
- generalize a little bit how fatal errors are handled and make them take the same path as uncaught exceptions,
- enhance handling of out of memory situations.

Commits
-------

e3255bf [Debug] better ouf of memory error handling
dfa8ff8 [Debug] cleanup interfaces before 2.5-final
@nicolas-grekas nicolas-grekas deleted the debug-interface-cleanup branch May 21, 2014 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants