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][HttpKernel][VarDumper] Prepare for committed 7.2 changes (aka "small-bc-breaks")#19702

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
nicolas-grekas merged 1 commit intosymfony:2.7fromnicolas-grekas:fix-72
Aug 23, 2016

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedAug 22, 2016
edited
Loading

QA
Branch?2.7
Bug fix?yes
Tests pass?yes
LicenseMIT

On PHP 7.2:

  • is_object() is going to returntrue for__PHP_Incomplete_Class instances
  • gettype($closed_resource); returns "resource (closed)"

ping@nikic FYI
seehttps://travis-ci.org/symfony/symfony/jobs/154114269 for fixed tests (except the one on ClassLoader which is a BC break on 7.1 that should be fixed there IMHO).

}
if (is_object($value)) {
if ($valueinstanceof \__PHP_Incomplete_Class) {
// Special case of object, is_object will return false
Copy link
Member

Choose a reason for hiding this comment

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

you should update the comment, as it will be a lie on PHP 7.2 currently

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

indeed, fixed

}
if (is_object($value)) {
if ($valueinstanceof \__PHP_Incomplete_Class) {
// Special case of object, is_object will return false until PHP 7.1
Copy link
Member

Choose a reason for hiding this comment

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

is_object returns false until PHP 7.1?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

updated

@nicolas-grekasnicolas-grekas merged commitfeb2cd0 intosymfony:2.7Aug 23, 2016
nicolas-grekas added a commit that referenced this pull requestAug 23, 2016
…hanges (aka "small-bc-breaks") (nicolas-grekas)This PR was merged into the 2.7 branch.Discussion----------[Debug][HttpKernel][VarDumper] Prepare for committed 7.2 changes (aka "small-bc-breaks")| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| Tests pass?   | yes| License       | MITOn PHP 7.2:- `is_object()` is going to return `true` for `__PHP_Incomplete_Class` instances- `gettype($closed_resource);` returns "resource (closed)"ping@nikic FYIseehttps://travis-ci.org/symfony/symfony/jobs/154114269 for fixed tests (except the one on ClassLoader which is a BC break on 7.1 that should be fixed there IMHO).Commits-------feb2cd0 [Debug][HttpKernel][VarDumper] Prepare for committed 7.2 changes
@nicolas-grekasnicolas-grekas deleted the fix-72 branchAugust 23, 2016 06:53
This was referencedSep 2, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp