zendframework/zend-math
Abandoned; use laminas/laminas-math. Create cryptographically secure pseudo-random numbers, and manage big integers
3.2.0
19M downloads/mo
#3994 most downloaded on Packagist
zendframework/zend-math
What this package is like to depend on
Last release 8 years ago
no release in 18 months
Ships unpredictably
gaps range from 3 weeks to 2.0 years
Rarely documented
notes for 8 of 68 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
68 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
33 releases · Oct 2012 to Dec 2018Releases
latest 60 of 68-
3.2.004 Dec 2018Release notes
Open source →Added
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Release notes
Open source →Added
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
-
3.1.110 Jul 2018Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
Release notes
Open source →Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
3.1.026 Apr 2018Release notes
Open source →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.
Release notes
Open source →Added
- #31 adds support for PHP 7.1 and 7.2.
Changed
-
#33 modifies the
BcmathBigInteger class to no longer change the globalbcscale, 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.
-
3.0.028 Apr 2016Release notes
Open source →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.
Release notes
Open source →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 torandom_bytes()and/or paragonie/random_compat) Zend\Math\Source\HashTiming, as it was used only withRandomLib.
Fixed
- #18 updates the code to
replace usage of
substr()andstrlen()withmb_substr()andmb_strlen(); these ensure that all string manipulations within the component remain binary safe.
- #18 adds a requirement on
-
2.7.104 Dec 2018Release notes
Open source →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.
-
2.7.007 Apr 2016Release notes
Open source →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.
Release notes
Open source →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.
-
2.6.002 Feb 2016Release notes
Open source →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.
-
2.5.217 Dec 2015Release notes
Open source →Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #7 fixes how base
conversions are accomplished within the bcmath adapter, ensuring PHP's native
base_convert()is used for base36 and below, while continuing to use the base62 alphabet for anything above.
-
2.5.103 Jun 2015Nothing published for this version
-
2.5.003 Jun 2015Nothing published for this version
-
2.4.1307 May 2015Nothing published for this version
-
2.4.12no dateNothing published for this version
-
2.4.11no dateNothing published for this version
-
2.4.10no dateNothing published for this version
-
2.4.9no dateNothing published for this version
-
2.4.8no dateNothing published for this version
-
2.4.7no dateNothing published for this version
-
2.4.6no dateNothing published for this version
-
2.4.5no dateNothing published for this version
-
2.4.4no dateNothing published for this version
-
2.4.3no dateNothing published for this version
-
2.4.2no dateNothing published for this version
-
2.4.1no dateNothing published for this version
-
2.4.023 Mar 2015Nothing published for this version
-
2.3.913 Jan 2015Nothing published for this version
-
2.3.8no dateNothing published for this version
-
2.3.7no dateNothing published for this version
-
2.3.6no dateNothing published for this version
-
2.3.5no dateNothing published for this version
-
2.3.4no dateNothing published for this version
-
2.3.311 Aug 2014Nothing published for this version
-
2.3.2no dateNothing published for this version
-
2.3.114 Apr 2014Nothing published for this version
-
2.3.012 Mar 2014Nothing published for this version
-
2.2.1005 Mar 2014Nothing published for this version
-
2.2.9no dateNothing published for this version
-
2.2.8no dateNothing published for this version
-
2.2.7no dateNothing published for this version
-
2.2.6no dateNothing published for this version
-
2.2.531 Oct 2013Nothing published for this version
-
2.2.421 Aug 2013Nothing published for this version
-
2.2.3no dateNothing published for this version
-
2.2.210 May 2013Nothing published for this version
-
2.2.1no dateNothing published for this version
-
2.2.0no dateNothing published for this version
-
2.1.617 Apr 2013Nothing published for this version
-
2.1.5no dateNothing published for this version
-
2.1.413 Mar 2013Nothing published for this version
-
2.1.319 Feb 2013Nothing published for this version
-
2.1.2no dateNothing published for this version
-
2.1.106 Feb 2013Nothing published for this version
-
2.1.029 Jan 2013Nothing published for this version
-
2.0.813 Mar 2013Nothing published for this version
-
2.0.726 Jan 2013Nothing published for this version
-
2.0.619 Dec 2012Nothing published for this version
-
2.0.520 Nov 2012Nothing published for this version
-
2.0.4no dateNothing published for this version
-
2.0.317 Oct 2012Nothing published for this version
-
2.4.0rc7no dateNothing published for this version
-
2.4.0rc6no dateNothing published for this version