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
PHP 5.4.3 Update brokes my Symfony2 instance #4262
Comments
I'm running 5.4.3 on Arch Linux and I don't have any problem. Have you tried clearing your prod cache? |
I have cleared the cache, but error stil appeared... |
Ah! I forgot to mention that I'm using php-fpm and nginx... maybe there are some bugs în php-fpm... |
Might be related to https://github.com/symfony/symfony-standard/issues/169 @mishunika do you have Tokenizer extension installed? |
same problem here on my arch box! @jakzal tokenizer is enabled by default...at least on my arch installation no configurations was needed. |
@matteosister what about other requirements? Did you guys run check.php to verify your environments? |
Both on the cli and with apache. Everything is "ok" |
this is definitely a problem with the php version that comes with arch (php-5.4.3-1). |
It's not a php version problem, as the downgrade did not solve the problem for me. |
have you downgraded also all the php related packages? (apc, mcrypt, intl...etc) |
nope. I wasn't aware that each php version has it's own list of module packages... |
Then it's probably one of the additional modules. Things are working just fine for me on Ubuntu 12.04 with custom compiled 5.4.3 |
I had same trouble with nginx + php-fpm, the error was wrong version php-apc |
@faost so by downgrading apc you solved this? |
Well You can't really run SF2 on PHP 5.4.x with APC. Versions before 3.1.10 are not compatible with 5.4, 3.1.10 is compatible with it, but it breaks xml see #4185 |
@mvrhov thanks! I'll try to remove the package... |
Removing APC does indeed fix the issue. Could we document the incompatibility of 5.4.x with APC somewhere? This is confusing new users. Alternatively, Symfony could check for this and provide a clear error message describing the problem. |
just a note, with almost every new major version of PHP, APC is broken for a while. |
Removing apc fixes the problem also for me. |
Works fine on arch linux with |
I revoke my statement, it doesn't work with apc enabled. |
It seems that the last php-apc update (php-apc 3.1.10-3) fixes the problem. Thanks for providing workaround solutions ;] |
And those who were waiting for an official release APC 3.1.11 was released yesterday with included fix. |
Thanx to @mvrhov, your hint lead me to a solution form my problem. Let me explain my struggle through this mess. @mvrhov pushed my try and error struggle to the right direction. I just got a precompiled binary ready to use from http://windows.php.net/downloads/pecl/releases/apc/3.1.13/php_apc-3.1.13-5.4-nts-vc9-x86.zip placed it into php/ext/ restarted the php buildin webserver cleared all those caches, restarted the IDE took a deep breath and: It simply worked! @fabpot Please check for those buggy apc version's and save people like me some hairs. ;-) I thing I am neither the first nor the last who encountered that pitfall. A search for https://www.google.de/search?q=php_apc+nts+x86+windows+build will lead you direct into hell, as the first result is from pierre and buggy. At all who read this: |
Anyone knows a list of buggy APC versions and when it was fixed? |
Or is it still that APC does not work well with PHP 5.4? |
no more problems here I think that from 3.1.11 the probelm was fixed. But I'm not sure what previous versions was affected... |
PHP 5.4 support has been added in APC 3.1.10 which is beta. last stable is 3.1.9 |
@fabpot: It started working in 3.1.11, but there were other problems with segfaults. IMO we should recommend >=3.1.13 edit: 3.1.13 works for me since the day it was released. Haven't yet upgraded to 3.1.14 so I cannot comment on that |
Just to be sure I understand it right: We need to recommend 3.1.13 for PHP 5.4, everything is fine for PHP 5.3, right (at least I've nerver had a problem with 5.3)? |
looks good to me |
@mvrhov segfaults while running tests or using Symfony2 ? |
@pborreli running. Fix for # 69972 was the problematic one. |
If you have a look at the changelog for APC, what was fixed in 3.1.13 is already in the changelog for 3.1.14 (http://pecl.php.net/package-changelog.php?package=APC). Anyone else can confirm that both 3.1.13 and 3.1.14 works whereas 3.1.12 does not? |
the # 69972 bug has been introduced in 3.1.12 (Fixed interned strings storage freeing on module shutdown (Anatoily)) and fixed in 3.1.13
|
see sensiolabs/SensioDistributionBundle@e417fd7 where I've added a check for problematic APC versions |
The problem is because of APC(apc.dll) for windows is complied with "enable-apc-debug=yes" |
Hi there... After updating PHP to version 5.4.3, a strange fatal error appears on app_dev.php:
Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations.
This happens in file:
/app/cache/prod/classes.php
on lines that define a namespace...I thought that something from the new version of php brokes symfony, but I wasn't able to find some useful information on php's changelogs... So I gave up, I've just downgraded all my php packages to version 5.3.13... But I think there might be a solution, so I decided to post here...
btw. I'm using an updated ArchLinux...
The text was updated successfully, but these errors were encountered: