You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains 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
The reason will be displayed to describe this comment to others. Learn more.
In mcrypt_compat 2.0 phpseclib_mcrypt_generic_deinit was modified to so that $td was passed by reference. This was done so that reflection could be used to change the visibility of a variable that phpseclib 3.0 made private (in phpseclib 2.0 all class variables were implicitly public). Because of that you can't do call_user_func($prefix . 'mcrypt_generic_deinit', $td); (doing so will give you a "Parameter 1 to phpseclib_mcrypt_generic_deinit() expected to be a reference, value given" error) - you have to do ($prefix . 'mcrypt_generic_deinit')($td);. Only problem with that is that that only works on PHP 7.0+, hence why PHP 5.6 is being dropped.
f61ab08
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.
In mcrypt_compat 2.0
phpseclib_mcrypt_generic_deinit
was modified to so that$td
was passed by reference. This was done so that reflection could be used to change the visibility of a variable that phpseclib 3.0 made private (in phpseclib 2.0 all class variables were implicitly public). Because of that you can't docall_user_func($prefix . 'mcrypt_generic_deinit', $td);
(doing so will give you a "Parameter 1 to phpseclib_mcrypt_generic_deinit() expected to be a reference, value given" error) - you have to do($prefix . 'mcrypt_generic_deinit')($td);
. Only problem with that is that that only works on PHP 7.0+, hence why PHP 5.6 is being dropped.Reference:
6505669#diff-6b32a7cea48ba353a2295cad1c8042b0c3978f461a74bab5bb7dfc7df6158246L777