Removed the mcrypt extension from the default variant#950
Conversation
2 similar comments
|
changing the default varients will also modify settings for other php versions. I suggest we still keep at the same time, we can remove |
|
I see a few issues with this suggestion:
I'd say it's the least of the evils. Just add In general, I'd say the |
It's why we need some changes in
agreed. In fact I have already finished this, but I won't be available (to push / open PR) before next Monday.
emm, I just suggest to remove those unsupported extension at runtime. I also want to point out that we will automaticlly build let's put the |
Do you want to check the dependencies of
I don't like the approach. The set of extensions included in a variant should be predictable. If I run |
yeah, I checked the dependencies, but if I cannot find I will just append
So what's your solution for |
But that's the problem. If as an end user I don't use
Didn't know it's a thing. What's the use case for it? I'd say users who use it ask for a trouble. As soon as we add a new variant (e.g. |
|
So, here's my proposal:
|
|
@morozov sounds good, but how do we handle older php versions? |
|
Can we provide different variant list for these php major versions? |
I don't get the question. Removal of |
|
I'd still like to get this merged. @c9s please see my response above. |
|
@morozov sure, but many legacy applications based on php5.x use mcrypt extension, if might break some CI build flow if we deprecated it from the default. |
|
would be great if we can add a dynamic check to add the mycrpt variant back dynamically for php5.x versions when user install php5.x. |
Please see above:
Legacy doesn't mean unmaintained. For such apps, their maintainer can add |
|
@morozov understood. thanks for the explanation. approved. |
|
Would be great if you can add a notice message when user uses |
|
Just adding a warning when someone uses the A better approach would be to show the warning only if I tried to implement it in the if (isset($variantInfo['enabled_variants']['default'])
&& !isset($variantInfo['enabled_variants']['mcrypt'])
&& !isset($variantInfo['disabled_variants']['mcrypt'])) {
$this->logger->warn("Deprecation messate... Please enable or disable mcrypt explicitly");
}Unfortunately it didn't work as I expected and just added I think it's fine if we just highlight the change in the release notes. We've already spent more time and effort on this issue than it deserves. |
An attempt to
phpbrew install 7.2.2 +defaultproduces:The
mcryptextension has been deprecated in PHP 7.1 and removed in PHP 7.2. We could add some conditional logic to detect ifmcryptis available in the PHP version being built and still enable it by default if it's available, but I believe it's better to just remove it from the default variant.