This repository was archived by the owner on Jan 30, 2020. It is now read-only.
Releases: zendframework/zend-math
Releases · zendframework/zend-math
zend-math 3.2.0
zend-math 2.7.1
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #37 adds the static method
isSupportedto theZend\Math\Source\HashTiming
class, to ensure it fulfills theRandomLib\Sourceinterface from version 2.7
and up.
zend-math 3.1.1
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-math 3.1.0
Added
- #31 adds support for PHP 7.1 and 7.2.
Changed
-
#33 modifies the
BcmathBigInteger class to no longer change the global
bcscale, but instead send the0scale value explicitly to each bcmath operation. This prevents
side effects when using bcmath in other scenarios. -
#29 modifies how caught exceptions are re-thrown; all such cases now provide
the original exception as the previous exception.
Deprecated
- Nothing.
Removed
Fixed
- Nothing.
zend-math 3.0.0
This version contains a number of changes to required dependencies, error handling, and internals; please read the migration document for full details.
Added
- #18 adds a requirement on
ext/mbstring. - #18 adds a requirement on
paragonie/random_compatfor polyfilling PHP 7'srandom_bytes()andrandom_int()functionality. - #20 prepares and publishes documentation to https://zendframework.github.io/zend-math/
Deprecated
- Nothing.
Removed
- #18 removes the
$strongoptional parameter from the following methods, as the component now
ensures a cryptographically secure pseudo-random number generator is always
used:Rand::getBytes($length)Rand::getBoolean()Rand::getInteger($min, $max)Rand::getFloat()Rand::getString($length, $charlist = null)
- #18 removes the
requirement on ircmaxell/random-lib, in favor of paragonie/random_compat (as
noted above); this also resulted in the removal of:- direct usage of mcrypt (this is delegated to paragonie/random_compat)
- direct usage of
/dev/urandomorCOM(this is delegated to
random_bytes()and/or paragonie/random_compat) Zend\Math\Source\HashTiming, as it was used only withRandomLib.
Fixed
- #18 updates the code to
replace usage ofsubstr()andstrlen()withmb_substr()and
mb_strlen(); these ensure that all string manipulations within the component
remain binary safe.
zend-math 2.7.0
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #16 updates
Zend\Math\Randto use PHP 7'srandom_bytes()andrandom_int()or mcrypt
when detected, and fallback toircmaxell/RandomLibotherwise, instead of using
openssl. This provides more cryptographically secure pseudo-random generation.
zend-math 2.6.0
Added
- Nothing.
Deprecated
- Nothing.
Removed
- #5 removes
Zend\Math\BigInteger\AdapterPluginManager, and thus the zend-servicemanager dependency. Essentially, no other possible plugins are likely to ever be needed outside of those shipped with the component, so using a plugin manager was overkill. The functionality for loading the two shipped adapters has been
Fixed
- Nothing.