8000 Don't load class cache and bootstrap file on php 7 by derrabus · Pull Request #1030 · symfony/symfony-standard · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Don't load class cache and bootstrap file on php 7 #1030

Merged
merged 1 commit into from
Dec 6, 2016
Merged

Don't load class cache and bootstrap file on php 7 #1030

merged 1 commit into from
Dec 6, 2016

Conversation

derrabus
Copy link
Member
@derrabus derrabus commented Dec 3, 2016

As discussed in symfony/symfony#20668, the class cache features should be deprecated. Since the class cache and the bootstrap file are still useful on php 5, we load them only when running on php 5.

A future php-7-only release of Symfony Standard should remove those blocks completely.

@derrabus
Copy link
Member Author
derrabus commented Dec 3, 2016

ping @nicolas-grekas

@derrabus
Copy link
Member Author
derrabus commented Dec 3, 2016

The fabbot failure is not related to my changes.

@linaori
Copy link
linaori commented Dec 5, 2016

When removing this from the repo, this line shouldn't be forgotten:

"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",

@nicolas-grekas
Copy link
Member

👍

2 similar comments
@xabbuh
Copy link
Member
xabbuh commented Dec 5, 2016

👍

@jakzal
Copy link
jakzal commented Dec 6, 2016

👍

@fabpot
Copy link
Member
fabpot commented Dec 6, 2016

Thank you @derrabus.

@fabpot fabpot merged commit 9b2e12f into symfony:master Dec 6, 2016
fabpot added a commit that referenced this pull request Dec 6, 2016
…rabus)

This PR was merged into the 3.3-dev branch.

Discussion
----------

Don't load class cache and bootstrap file on php 7

As discussed in symfony/symfony#20668, the class cache features should be deprecated. Since the class cache and the bootstrap file are still useful on php 5, we load them only when running on php 5.

A future php-7-only release of Symfony Standard should remove those blocks completely.

Commits
-------

9b2e12f Don't load class cache and bootstrap file on php 7.
@derrabus derrabus deleted the no-class-cache-on-php-7 branch December 6, 2016 13:51
javiereguiluz added a commit to symfony/demo that referenced this pull request Jan 2, 2017
…on PHP 7 (bocharsky-bw)

This PR was merged into the master branch.

Discussion
----------

Fix error with class redeclaration: Do not load cache files on PHP 7

Fix #411

I think this error could be related to the symfony/symfony-standard#1030

Commits
-------

13da5dc Fix error with class redeclaration: Do not load cache files on PHP 7
michaelperrin pushed a commit to michaelperrin/symfony-docker that referenced this pull request Jan 24, 2017
michaelperrin pushed a commit to michaelperrin/symfony-docker that referenced this pull request Jan 24, 2017
@vyshkant
Copy link

@iltar

When removing this from the repo, this line shouldn't be forgotten:

"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
,

Could you please explain, what exactly did you mean? Should this line be removed or kept?

@linaori
Copy link
linaori commented Jan 29, 2018

@vyshkant that line should be removed if you're on php 7.0+, because it builds the bootstrap that you no longer require.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0