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

[HttpKernel] recover from failed deserializations#42032

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:4.4fromxabbuh:issue-42031
Jul 9, 2021

Conversation

@xabbuh
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#42031
LicenseMIT
Doc PR

}

returnunserialize($entries);
returnunserialize($entries) ?: [];
Copy link
Contributor

@EmmanuelVellaEmmanuelVellaJul 8, 2021
edited
Loading

Choose a reason for hiding this comment

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

unserialize can return various types (seehttps://www.php.net/manual/en/function.unserialize.php#refsect1-function.unserialize-returnvalues).

Maybe we should test the return value withis_array ?

Copy link
Member

Choose a reason for hiding this comment

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

Well, the Store controls the serialization too. So if unserializing does not fail, we know that we have an array (unless you messed up with the files directly to change what is stored, but that's not supported by our implementation)

EmmanuelVella reacted with thumbs up emoji
@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commit068429e intosymfony:4.4Jul 9, 2021
@xabbuhxabbuh deleted the issue-42031 branchJuly 9, 2021 14:22
@EmmanuelVella
Copy link
Contributor

Thank you@xabbuh !

xabbuh reacted with heart emoji

This was referencedJul 26, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

+1 more reviewer

@EmmanuelVellaEmmanuelVellaEmmanuelVella left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@nicolas-grekas@EmmanuelVella@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp