Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Debug] Remove $context arg from handleError(), preparing for PHP 7.2#21389

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromnicolas-grekas:debug-72
Jan 24, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJan 24, 2017
edited
Loading

QA
Branch?2.7
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

PHP 7.2 will trigger deprecation notices.
Seehttps://wiki.php.net/rfc/deprecations_php_7_2#errcontext_argument_of_error_handler

@nicolas-grekasnicolas-grekas added this to the2.7 milestoneJan 24, 2017
*
* @throws \ErrorException When $this->thrownErrors requests so
*
* @internal
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Fortunately, this annotation is here from the beginning so we can change the signature without breaking our BC policy.

GromNaN reacted with thumbs up emoji
@nicolas-grekasnicolas-grekasforce-pushed thedebug-72 branch 2 times, most recently from646b7b9 tof3211dbCompareJanuary 24, 2017 10:18
@stof
Copy link
Member

is there still a case where we will provide a context to the exception ? If no, we should deprecate ContextErrorException (which is here only to add the context)

@nicolas-grekas
Copy link
MemberAuthor

Done in#21388

if (isset($context['GLOBALS']) && ($this->scopedErrors &$type)) {
if (4 <$numArgs =func_num_args()) {
$context =$scope ?func_get_arg(4) :array();
$backtrace =5 <$numArgs ?func_get_arg(5) :null;
Copy link
Member

Choose a reason for hiding this comment

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

where is the backtrace comingfrom ? AFAIK, PHP never passes such argument

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

HHVM

Copy link
Member

Choose a reason for hiding this comment

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

In that case, can you add a small comment? That way, we can remove this piece of code more easily if we decide to drop HHVM support one day.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

comment added

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit83cad14 intosymfony:2.7Jan 24, 2017
fabpot added a commit that referenced this pull requestJan 24, 2017
…g for PHP 7.2 (nicolas-grekas)This PR was merged into the 2.7 branch.Discussion----------[Debug] Remove $context arg from handleError(), preparing for PHP 7.2| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -PHP 7.2 will trigger deprecation notices.Seehttps://wiki.php.net/rfc/deprecations_php_7_2#errcontext_argument_of_error_handlerCommits-------83cad14 [Debug] Remove $context arg from handleError(), preparing for PHP 7.2
@nicolas-grekasnicolas-grekas deleted the debug-72 branchJanuary 24, 2017 16:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

@stofstofstof left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@stof@fabpot@javiereguiluz

[8]ページ先頭

©2009-2025 Movatter.jp