-
Notifications
You must be signed in to change notification settings - Fork 39
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
Backdrop does not run on PHP 5.3.3 (or PHP 5.3.2?) #4712
Comments
Hm... If this is the first time someone actually realized this problem, then it's very likely a really rare one... 😉 @jenlampton In theory php version 5.3.9 could handle that code, but updating the requirements info is probably not what you want. And updating php on your CentOS server is probably impossible, too. Anyway, I can't test/verify nor provide a PR as the oldest php version I can get on my dev is 5.6.40. And this very likely is the case for most of us. BTW: our 5.3 testboxes have 5.3.29. |
It's possible that someone had realized the problem but gave up on Backdrop immediately and then didn't bother to tell us. I suspect though, that this is a rare problem. I am tempted to move these sites to a newer server for the client, but I also want to use this server as a testing ground for Backdrop... Is it possible to rework the code so that it can run on |
It's very likely possible, but who could provide a PR? Does anyone still have such an oooold php available in a dev box? Or maybe the question should be: is anyone willing to spend time on it?
Backdrop supports 5.3.29 - the testboxes prove it. Anything older would be hard to verify, even 5.3.9 - which should have fixed that php bug. Note: many of the 5.3 releases after 5.3.2 have been security releases. It's not recommended to run anything on such an old and insecure php version. At least not if it's "in the internet". |
Well, I do, apparently :)
Surely docker can do this?
I expect that there are a lot of sites that were built, launched, and have been "working fine" ever since, with little thought toward maintenance. In my case, the Drupal 6 site is still doing it's intended job well. |
I appreciate that it's not recommended. But, if our documentation says that we support 5.3.2 or higher, then we should support it. I assume that this is a policy decision that we took at some point and that there are reasons behind it. What is very cool, is that we will (at lease we should) soon have telemetry data to give us some idea of what versions of PHP our users are using. |
Lando configured with |
I created a VirtualBox VM and installed Ubuntu 10.04 which came with PHP 5.3.2, so I could test backdrop in this envirpnment. I found several problems:
Overall, I suggest that the problems are such and any changes required to resolve them are potentially too significant to continue to pursue getting Backdrop working on Php5.3.2. I have not tested it with 5.3.9, which was suggested as likely to work. |
We do know for sure, that Backdrop runs on PHP 5.3.29 - as the functional tests run on that version. I agree, getting this working on a ancient version is a waste of time. Version 5.3.29 is the last update for 5.3. We can verify, that things work on it without extra effort, so I suggest to update the requirements info accordingly. (Not that I'd recommend anyone to stay on hosting that uses such an old version, as the provider obviously doesn't bother security updates. 😜 ) BTW: CentOS 6 is EOL since November 30, 2020. |
Thanks @indigoxela. @jenlampton If you want a custom patch that you can apply to the environment you specified in your original post, then I would be happy to prepare that. I could pull a copy of backdrop 1.17.1 and load an existing database and patch so that it runs Ok on the Php5.3.2 configuration. This would allow time to migrate to a later supported version. Let me know if that interest you. |
@jayelless wow, thanks! I don't think I need the patch anymore, I've since moved this particular Backdrop site to Pantheon.
I agree, updating our minimum PHP version to the minimum version we test seems reasonable :) I'll make the change. |
For the record, I had previously increased the minimum PHP version in our requirements section to 5.3.29 (from PHP 5.3.2) on the system requirements page: In Drupal 7's README.txt file, the minimum supported PHP version is listed as However, As of Drupal 7.62, the minimum secure requirements as governed by the drupal community were increased to PHP 5.3.3. See SA-CORE-2019-002. I think it would be reasonable to bump our minimum version to PHP 5.3.3. |
After the immediate problem here (website on ancient php) has been solved, this issue seems to overlap a lot with #3992 Could it make sense to close this one, and continue discussion re requirement changes in the other issue? |
This is now a moot issue as we're bumping the minimum version to 5.6 in #3992. I don't think it makes sense for us to cause confusion by bumping the version number twice; which may lead to people thinking that newer versions of 5.3 (or anything below 5.6) is going to be sufficient. I don't believe there is anything we should do here, so I think it makes sense to close this issue. |
Description of the bug
In the requirements section on bakdropcms.org we clearly state that you need to be running PHP 5.3.2 or higher to run Backdrop.
I have a server running two Drupal 7 sites (and a Drupal 6 site, but sshhh) that is on 5.3.3 that cannot run Backdrop.
I get the following fatal error when trying to log in:
Steps To Reproduce
To reproduce the behavior:
Actual behavior
fatal errors
Expected behavior
things should work.
Add any other information that could help, such as:
1.17.1
nginx version: nginx/1.10.2
CentOS release 6.9 (Final)
The text was updated successfully, but these errors were encountered: