Changelog History
Page 4
-
v1.1.3 Changes
December 09, 2015โ The test for COM in disabled_classes is now case-insensitive.
-
v1.1.2 Changes
December 09, 2015๐ Don't instantiate COM if it's a disabled class. Removes the E_WARNING on Windows.
-
v1.1.1 Changes
November 30, 2015๐ Fix a performance issue with
/dev/urandom
buffering. -
v1.1.0 Changes
November 09, 2015๐ Fix performance issues with ancient versions of PHP on Windows, but dropped ๐ support for PHP < 5.4.1 without mcrypt on Windows 7+ in the process. Since this is a BC break, semver dictates a minor version bump.
-
v1.0.10 Changes
October 23, 2015- ๐ Avoid a performance killer with OpenSSL on Windows PHP 5.3.0 - 5.3.3 that was affecting WordPress users.
- ๐ Use
$var = null
instead ofunset($var)
to avoid triggering the garbage collector and slowing things down.
-
v1.0.9 Changes
October 20, 2015There is an outstanding issue
mcrypt_create_iv()
and PHP 7'srandom_bytes()
๐ on Windows reported by @nicolas-grekas caused byproc_open()
and environment variable handling (discovered by Appveyor when developing Symfony).Since the break is consistent, it's not our responsibility to fix it, but we ๐ป should fail the same way PHP 7 will (i.e. throw an
Exception
rather than raise ๐ป an error and then throw anException
). -
v1.0.8 Changes
October 18, 2015- ๐ Fix usability issues with Windows (
new COM('CAPICOM.Utilities.1')
is not always available). - โ
You can now test all the possible drivers by running
phpunit.sh each
in thetests
directory.
- ๐ Fix usability issues with Windows (
-
v1.0.7 Changes
October 16, 2015๐ Several large integer handling bugfixes were contributed by @oittaa.
-
v1.0.6 Changes
October 15, 2015Don't let the version number fool you, this was a pretty significant change.
๐ 1. Added support for ext-libsodium, if it exists on the system. This is morally equivalent to adding
getrandom(2)
support without having to expose the syscall interface in PHP-land.- Relaxed open_basedir restrictions. In previous versions, if open_basedir was
set, PHP wouldn't even try to read from
/dev/urandom
. Now it will still do so if you can. ๐ 3. Fixed integer casting inconsistencies between random_compat and PHP 7. - Handle edge cases where an integer overflow turns one of the parameters into a float.
One change that we discussed was making
random_bytes()
andrandom_int()
strict typed; meaning you could only pass integers to either function. While most veteran programmers are probably only doing this already (we strongly encourage it), it wouldn't be consistent with how these functions behave in PHP- Please use these functions responsibly.
๐ We've had even more of the PHP community involved in this release; the โก๏ธ contributors list has been updated. If I forgot anybody, I promise you it's not because your contributions (either code or ideas) aren't valued, it's because I'm a bit overloaded with information at the moment. Please let me know immediately and I will correct my oversight.
๐ Thanks everyone for helping make random_compat better.
- Relaxed open_basedir restrictions. In previous versions, if open_basedir was
set, PHP wouldn't even try to read from
-
v1.0.5 Changes
October 08, 2015Got rid of the methods in the
Throwable
interface, which was causing problems ๐ on PHP 5.2. While we would normally not care about 5.2 (since 5.4 and earlier are EOL'd), we do want to encourage widespread adoption (e.g. Wordpress).