expand on eval() explanation

This commit is contained in:
terrafrost 2018-11-20 08:26:17 -06:00
parent 92f0ee0464
commit 9ccfaff7ba

View File

@ -2741,6 +2741,8 @@ abstract class SymmetricKey
// Before discrediting this, please read the following:
// @see https://github.com/phpseclib/phpseclib/issues/1293
// @see https://github.com/phpseclib/phpseclib/pull/1143
// to summarize, manual code generation/inlining/unrolling are employed for a massive
// performance increase
eval('$func = function ($_action, $_text) { ' . $init_crypt . 'if ($_action == "encrypt") { ' . $encrypt . ' } else { ' . $decrypt . ' }};');
return \Closure::bind($func, $this, static::class);