8000 [FrameworkBundle] Fix relative paths used as cache keys by nicolas-grekas · Pull Request #21237 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Fix relative paths used as cache keys #21237

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This bug fix is particularly important on 3.2, where the generated "templates.php" does contain relative paths. This turned out to generate a fatal error on our setup, because of non-normalized twig-cache keys. See also twigphp/Twig#2354
As a bonus, this saves us a copy-on-write on PHP 7.

@stof
Copy link
Member
stof commented Jan 11, 2017

looks good to me. 👍

@fabpot
Copy link
Member
fabpot commented Jan 11, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 5441e9b into symfony:2.7 Jan 11, 2017
fabpot added a commit that referenced this pull request Jan 11, 2017
…icolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] Fix relative paths used as cache keys

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This bug fix is particularly important on 3.2, where the generated "templates.php" does contain relative paths. This turned out to generate a fatal error on our setup, because of non-normalized twig-cache keys. See also twigphp/Twig#2354
As a bonus, this saves us a copy-on-write on PHP 7.

Commits
-------

5441e9b [FrameworkBundle] Fix relative paths used as cache keys
@peter17
Copy link
Contributor
peter17 commented Jan 12, 2017

I think this should be merged into symfony:3.2 and other branches as well, am I wrong? Regards.

@jakzal
Copy link
Contributor
jakzal commented Jan 12, 2017

@peter17 you're right and this is what's gonna happen. It was merged to 2.7 and will eventually get to other branches too.

@nicolas-grekas nicolas-grekas deleted the fix-twig-loader branch January 13, 2017 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0