-
-
Notifications
You must be signed in to change notification settings - Fork 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
Nextcloud 12 is not compatible with newer than php 7.1 #8216
Conversation
lib/versioncheck.php
Outdated
} | ||
|
||
// Show warning if > PHP 7.1 is used as Nextcloud 12 is not compatible with > PHP 7.1 | ||
if (version_compare(PHP_VERSION, '7.2.0') !== -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.
I guess you meant '7.1.0'
here 😉
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.
So this will run with 7.2.0 just fine, but error out with 7.2.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.
No the version has to be lower than 7.2.0. So all 7.1.x are allowed.
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.
Just use , '<'
instead of comparing !== -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.
Fixed
Codecov Report
@@ Coverage Diff @@
## stable12 #8216 +/- ##
==============================================
+ Coverage 53.84% 53.84% +<.01%
Complexity 22762 22762
==============================================
Files 1385 1386 +1
Lines 87152 87155 +3
Branches 1331 1331
==============================================
+ Hits 46926 46928 +2
- Misses 40226 40227 +1
|
f3cb069
to
0d6c11a
Compare
Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Backport of #6830
Fixes #7415
Just to avoid users from trying this with a to new (untested) php version
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl