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

[Cache] Ensure key exists before checking array value#30621

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:4.2fromjrjohnson:cache-array-key
Mar 27, 2019
Merged

[Cache] Ensure key exists before checking array value#30621

fabpot merged 1 commit intosymfony:4.2fromjrjohnson:cache-array-key
Mar 27, 2019

Conversation

@jrjohnson
Copy link
Contributor

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

Without this fix we're getting warnings like

PHP Notice:  Undefined index: %5BOUR-KEY%5D%5B1%5D in vendor/symfony/cache/Traits/PhpFilesTrait.php on line 136

when doing a$cache->contains() in some cases. I'm having a lot of trouble tracking down exactly when and where this error will happen and what changes in our app / cache cause it, but this fix seems benign enough that maybe it can be merged without that backstory.

@nicolas-grekasnicolas-grekas added this to the4.2 milestoneMar 25, 2019
@fabpot
Copy link
Member

Thank you@jrjohnson.

@fabpotfabpot merged commitf8b4ade intosymfony:4.2Mar 27, 2019
fabpot added a commit that referenced this pull requestMar 27, 2019
…ohnson)This PR was merged into the 4.2 branch.Discussion----------[Cache] Ensure key exists before checking array value| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Without this fix we're getting warnings like```PHP Notice:  Undefined index: %5BOUR-KEY%5D%5B1%5D in vendor/symfony/cache/Traits/PhpFilesTrait.php on line 136```when doing a `$cache->contains()` in some cases. I'm having a lot of trouble tracking down exactly when and where this error will happen and what changes in our app / cache cause it, but this fix seems benign enough that maybe it can be merged without that backstory.Commits-------f8b4ade Ensure key exists before checking array value
@jrjohnsonjrjohnson deleted the cache-array-key branchMarch 27, 2019 13:01
@fabpotfabpot mentioned this pull requestApr 2, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

4 participants

@jrjohnson@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp