-
Notifications
You must be signed in to change notification settings - Fork 457
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
Upgrading from PHP 5 to PHP 7 #2102
Comments
IMHO the current code in master can already be used with PHP7. At least 2 projects that I know of already use PHP7 and didn't report problems. |
boinc-server-docker has PHP 7 as of about a week ago and has been running at Cosmology@Home with no modifications to any PHP file and no errors spotted. I'd say its safe to say we support PHP 7 and close this, and can open other issues if we spot specific problems. |
Not sure how representative those two projects are for the BOINC repo as a whole. I ran a compatibility check and got this (false-positives related to
Nothing too critical apart from |
I'm looking into this and probably will provide a PR. |
Regarding boinc/html/inc/translation.inc Lines 195 to 196 in 2a58c1f
$text ) and only look at the others which don't get changed before.
The strings in Lines 506 to 514 in 2a58c1f
switch construct is doing an exact comparison and there is no room for a wrong interpretation.
The GeoIP part should be updated to a newer version available at https://github.com/maxmind/geoip-api-php or a new API version available at: https://github.com/maxmind/GeoIP2-php. I consider this outside of this issue as one would need to check how BOINC uses the existing API and also migrate over to a new API. I'm leaving the Line 290 in 2a58c1f
false because safe_mode doesn't exist anymore.
|
Nice one! Good to see these addressed. |
Differences between PHP 5 & 7
Removed depreciated PHP functionality in v7
If we want to implement a secure password hashing mechanism such as Bcrypt or Argon2i (instead of md5), I believe that we need to upgrade to the latest version (or at least v7) of PHP for native support.
How much of BOINC would break and how much work would be required to uplift BOINC to PHP v7+?
It would also require the drupal implementation to be uplifted, since it depends on the same PHP version currently.
The text was updated successfully, but these errors were encountered: