Uh oh!
There was an error while loading. Please reload this page.
Require PHP 7.4 at least for running the build system - #9519
Merged
Conversation
nikic
reviewed
Sep 10, 2022
Uh oh!
There was an error while loading. Please reload this page.
nikic
approved these changes
Sep 10, 2022
Girgias
approved these changes
Sep 10, 2022
iluuu1994
commented
Sep 10, 2022
Member
Pretty gross but this would work 😜 <?phpif (PHP_VERSION_ID < 70400) {
thrownewException("The build system requires PHP 7.4 at least.\n");
}
$file = file_get_contents(__FILE__);
eval(explode('__halt_compiler();', $file, 3)[2]);
__halt_compiler();
// Unsupported syntax |
kocsismate
commented
Sep 10, 2022
MemberAuthor
Ilija.... 😂 Actually, this is madly brilliant, but I hope that you won't be upset if I don't use it (?). |
iluuu1994
commented
Sep 10, 2022
Member
I'm incredibly disappointed but I'll be ok 😂 |
kocsismateforce-pushed
the
bump-build-version
branch
from
September 10, 2022 16:29
3dfac93 to
73658c3Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Due to #9512 (comment). The target branch (PHP-8.2 vs master) can be under debate, but I chose the former for now.
I guess our Travis config should be adapted as well in order to use PHP 7.4, but I'm not sure yet how to do (will have time later to find it out)