-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Replacement of mcrypt and usage of mcryptcompat in Magento 1.9.4.x and 20.x (mcrypt is deprecated) #1211
Comments
OK I have learnt some things and I think it is good to share here; also 1 remaining question then this issue can be closed ;) Learnings
Since Magento 19.4.x with php 7.2 support the phpseclib lib and mcryptcompat methods have been introduced as a fall back for the deprecation of mcrypt. Important to know is that Fixing it
After disabling mcrypt via the php ini files we saw Magento falls back on mcryptcompat. Mcryptcompat sources can be found here https://github.com/phpseclib/mcrypt_compat and phpseclib3 here https://github.com/phpseclib/phpseclib - but there are some changes so dont just upgrade I am closing this issue now |
@seansan do you find any performance changes between using the two? |
Not tested. But would be msecs I guess
…On Tue, 6 Oct 2020 at 18:32, Joshua Dickerson ***@***.***> wrote:
@seansan <https://github.com/seansan> do you find any performance changes
between using the two?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1211 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE7I275PKYSEWAZLVWFZJTSJNBDBANCNFSM4RON2O3Q>
.
|
I think someone tested at some point and of course it depends on how many times you call it but it wasn't insignificant. Could you just disable E_DEPRECATED in production? |
> Could you just disable E_DEPRECATED in production?
What do you mean?
…On Wed, 7 Oct 2020 at 11:54, Colin Mollenhour ***@***.***> wrote:
I think someone tested at some point and of course it depends on how many
times you call it but it wasn't insignificant. Could you just disable
E_DEPRECATED in production?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1211 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE7I24F7Q6KZQACWPZBZD3SJQ3F5ANCNFSM4RON2O3Q>
.
|
Use the PECL mcrypt lib and disable E_DEPRECATED |
Set the
Stated differently: just because there is a deprecation warning doesn't mean you have to immediately cease using the code, you can just ignore the warning.. :) |
yeah we did that; but I still saw the error warning sometimes, I think if
certain function calls were made directly in the original php code
…On Wed, Oct 7, 2020 at 6:38 PM Colin Mollenhour ***@***.***> wrote:
Could you just disable E_DEPRECATED in production?
What do you mean?
Set the error_reporting value to not show E_DEPRECATED. For example this
is the default php.ini:
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
Stated differently: just because there is a deprecation warning doesn't
mean you have to immediately cease using the code, you can just ignore the
warning.. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1211 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE7I2YZG5LE7VMB7NR7OSLSJSKOVANCNFSM4RON2O3Q>
.
|
Getting some mcrypt warnings after I pulled 20.x yesterday we are on php 7.2.33
Am I missing something?
Deprecated: Function mcrypt_module_open() is deprecated in public_html/lib/Varien/Crypt/Mcrypt.php on line 74
Deprecated: Function mcrypt_enc_get_iv_size() is deprecated in public_html/lib/Varien/Crypt/Mcrypt.php on line 83
Deprecated: Function mcrypt_create_iv() is deprecated in public_html/lib/Varien/Crypt/Mcrypt.php on line 83
Deprecated: Function mcrypt_enc_get_key_size() is deprecated in public_html/lib/Varien/Crypt/Mcrypt.php on line 87
Deprecated: Function mcrypt_generic_init() is deprecated in public_html/lib/Varien/Crypt/Mcrypt.php on line 94
Deprecated: Function mdecrypt_generic() is deprecated in public_html/lib/Varien/Crypt/Mcrypt.php on line 130
Deprecated: Function mdecrypt_generic() is deprecated in public_html/lib/Varien/Crypt/Mcrypt.php on line 130
Funny. I am missing these files and this code in latest 20.x pull ... ce5c202
ce5c202
The text was updated successfully, but these errors were encountered: