-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support PHP 7.4 #37302
Support PHP 7.4 #37302
Conversation
573fd78
to
b139949
Compare
IMO this is ready. CI is green so all the main features work with PHP 7.4. After merging this we can then think about if there are other "special" features that should be separately tested. Please review. |
if (\version_compare(PHP_VERSION, '7.4.0alpha1') !== -1) { | ||
echo 'This version of ownCloud is not compatible with PHP 7.4' . PHP_EOL; | ||
// Show warning if PHP 7.5 or later is used as ownCloud is not compatible with PHP 7.5 | ||
if (\version_compare(PHP_VERSION, '7.5.0alpha1') !== -1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that the next version will be php 8.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will be fine also. I put 7.5 because if there is a 7.5 then we do not know if we would automatically support it or not.
Codecov Report
@@ Coverage Diff @@
## master #37302 +/- ##
=========================================
Coverage 64.52% 64.53%
Complexity 19166 19166
=========================================
Files 1266 1266
Lines 74938 74952 +14
Branches 1331 1331
=========================================
+ Hits 48356 48372 +16
+ Misses 26190 26188 -2
Partials 392 392
Continue to review full report at Codecov.
|
Note: PHP 7.4 emits messages about array access attempts on things that are not arrays, e.g. I purposely put some rubbish code to get this message from the server output:
And this message in
Now that unit tests are passing, there should not be "too many" of this remaining. I will check the server and owncloud logs in CI. |
https://drone.owncloud.com/owncloud/core/24446/85/17
Needs investigating. I raised issue #37303 to follow-up these. Edit: see the issue - 2 different "access array offset" were found. |
IMO this can be merged so that people can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be a bit easier for me to improve compatibility if master will have these changes
Now that this has been merged, tonight's daily-master tarballs will allow PHP 7.4. |
Description
console.php
andindex.php
Note: for pipelines that use a federated server as part of the test environment, those will keep running the federated server on PHP 7.2, because the federated server will be some older release of ownCloud (e.g. 10.3.2 or 10.4.1) that we know does not support PHP 7.4.
Related Issue
#36509
How Has This Been Tested?
CI
Types of changes
Checklist: