-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Error in v3.2-rc1 and HTTP cache in production #20560
Comments
Can you check where the ResponseHeaderBag class is loaded from the first time? bootstrap.php.cache? Autoloading somewhere (where then?) |
Hi, after investigate more in depth I see the problem come with the The problem working with I tried too with |
Ok I think the problem come with |
I observe similar issue in production (Heroku), when using latest 3.2 (which is released, right?)
|
I've got a similar problem |
@stof out of interest do you know what kind of performance impact that might have running PHP5.6? I've hit this same issue, but unfortunately haven't got a PHP7 compatible system (yet). |
I have exactly the same problem as the OP.If I downgrade to Symfony 3.1.x it works perfectly without changing the code, so the problem is definitely in Symfony 3.2.x.I upgraded to 3.2.1 but the problem is still there.I am running PHP 7 with OPCache enabled and the default app.php file with the app cache kernel enabled. |
… (nicolas-grekas) This PR was merged into the 3.2 branch. Discussion ---------- [FrameworkBundle] Remove Response* from classes to compile | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20560, symfony/demo#411, FriendsOfSymfony/FOSHttpCacheBundle#276 | License | MIT | Doc PR | - When HttpCache is used, Response is loaded first, then the kernel is booted (on cache miss), which triggers the loading of classes.php. Since 3.2 generates a context free classes.php, the Response class is now included there when it was excluded previously. And boom, "Cannot declare class Symfony\Component\HttpFoundation\Response". Commits ------- 9ab5982 [FrameworkBundle] Remove Response* from classes to compile
I have a small personal project made with the latest dev version but I found a bug with the http cache, this is my sources:
Kernel: https://github.com/nunopress/sf-micro-edition/blob/master/app/MicroKernel.php
If I use
$kernel = new MicroCache($kernel);
get error:If I enable the
AppCache
and disable$kernel->loadClassCache();
working but not all 2 in the same time.For check if is my problem I downgraded to stable version 3.1 and all working fine as expected so I think the problem come with 3.2-rc1 (i not tested with the previous version).
php version:
If need more information's ask without problems. Sorry if isn't a good issue post, it's the first time i post one issue for symfony.
The text was updated successfully, but these errors were encountered: