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

[ExpressionLanguage] Fix BC of cached SerializedParsedExpression containing GetAttrNode#48559

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

Conversation

@fancyweb
Copy link
Contributor

QA
Branch?6.2
Bug fix?yes
New feature?no
Deprecations?no
Tickets#48543
LicenseMIT
Doc PR-

Ref#47058

GetAttrNode can be serialized and cached throughSerializedParsedExpression.

@fsevestre Can you try this small patch plz?


publicfunction__unserialize(array$data):void
{
$this->nodes =$data['nodes'];
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@nicolas-grekas I'm wondering if there's a way to just call the "default PHP unserialization" in one line and then add the extra checks?

Choose a reason for hiding this comment

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

use __wakeup instead?

Choose a reason for hiding this comment

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

on a closer look, the code is correct (except for isNullCoalesce which has never been part of any serialized payloads)

@fsevestre
Copy link
Contributor

Hello, I can confirm that with the current patch my error is gone 👍

fancyweb reacted with rocket emoji

@nicolas-grekas
Copy link
Member

Thank you@fancyweb.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

4 participants

@fancyweb@fsevestre@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp