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] Ignore missing annotations.php#22965

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

Closed
ro0NL wants to merge3 commits intosymfony:3.3fromro0NL:cache/ignore-missing-file
Closed

[Cache] Ignore missing annotations.php#22965

ro0NL wants to merge3 commits intosymfony:3.3fromro0NL:cache/ignore-missing-file

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedMay 30, 2017
edited
Loading

QA
Branch?3.3
Bug fix?yes (different in 3.2)
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#...
LicenseMIT
Doc PRsymfony/symfony-docs#...

Avoids the following notices if cache is not warmed up (i.e.cache:clear --no-warmup > hit the browser).

Warning: include(<base-path>/app/cache/<env>/annotations.php): failed to open stream: No such file or directoryWarning: include(): Failed opening '<base-path>/app/cache/<env>/annotations.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php')

@nicolas-grekas
Copy link
Member

In 3.2 we use file_exists, this somehow got lost in a merge I guess
https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php#L326

@nicolas-grekasnicolas-grekas added this to the3.3 milestoneMay 30, 2017
@ro0NL
Copy link
ContributorAuthor

you refactored in#20694 :) from the looks of it i'd say stream_resolve_include_path + include without @ but im not sure that needs to be supported or so; otherwise file_exists/is_file will do. Note 3.2 doesnt use @

@nicolas-grekas
Copy link
Member

let's do the same as in 3.2, that's fine

@ro0NL
Copy link
ContributorAuthor

This should do.

@fabpot
Copy link
Member

Thank you@ro0NL.

fabpot added a commit that referenced this pull requestMay 31, 2017
This PR was squashed before being merged into the 3.3 branch (closes#22965).Discussion----------[Cache] Ignore missing annotations.php| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes (different in 3.2)| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->Avoids the following notices if cache is not warmed up (i.e. `cache:clear --no-warmup` > hit the browser).```Warning: include(<base-path>/app/cache/<env>/annotations.php): failed to open stream: No such file or directoryWarning: include(): Failed opening '<base-path>/app/cache/<env>/annotations.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php')```Commits-------e8f70c7 [Cache] Ignore missing annotations.php
@fabpotfabpot closed thisMay 31, 2017
@fabpotfabpot mentioned this pull requestJun 5, 2017
@ro0NLro0NL deleted the cache/ignore-missing-file branchJuly 18, 2017 14:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

4 participants

@ro0NL@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp