Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1, php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28, php-7.3.4RC1, php-7.2.17RC1, php-7.1.27, php-7.3.3, php-7.2.16, php-7.3.3RC1, php-7.2.16RC1, php-7.2.15, php-7.3.2, php-7.2.15RC1, php-7.3.2RC1, php-5.6.40, php-7.1.26, php-7.3.1, php-7.2.14, php-7.2.14RC1, php-7.3.1RC1, php-5.6.39, php-7.1.25, php-7.2.13, php-7.0.33, php-7.3.0, php-7.1.25RC1, php-7.2.13RC1, php-7.3.0RC6, php-7.1.24, php-7.2.12, php-7.3.0RC5, php-7.1.24RC1, php-7.2.12RC1, php-7.3.0RC4, php-7.1.23, php-7.2.11, php-7.3.0RC3, php-7.1.23RC1, php-7.2.11RC1, php-7.3.0RC2, php-5.6.38, php-7.1.22, php-7.3.0RC1, php-7.2.10, php-7.0.32, php-7.1.22RC1, php-7.3.0beta3, php-7.2.10RC1, php-7.1.21, php-7.2.9, php-7.3.0beta2, php-7.1.21RC1, php-7.3.0beta1, php-7.2.9RC1, php-5.6.37, php-7.1.20, php-7.3.0alpha4, php-7.0.31, php-7.2.8, php-7.1.20RC1, php-7.2.8RC1, php-7.3.0alpha3, php-7.3.0alpha2, php-7.1.19, php-7.2.7, php-7.1.19RC1, php-7.3.0alpha1, php-7.2.7RC1, php-7.1.18, php-7.2.6, php-7.2.6RC1, php-7.1.18RC1, php-5.6.36, php-7.2.5, php-7.1.17, php-7.0.30, php-7.1.17RC1, php-7.2.5RC1, php-5.6.35, php-7.0.29, php-7.2.4, php-7.1.16, php-7.1.16RC1, php-7.2.4RC1, php-7.1.15, php-5.6.34, php-7.2.3, php-7.0.28, php-7.2.3RC1, php-7.1.15RC1, php-7.1.14, php-7.2.2, php-7.1.14RC1, php-7.2.2RC1, php-7.1.13, php-5.6.33, php-7.2.1, php-7.0.27, php-7.2.1RC1, php-7.1.13RC1, php-7.0.27RC1, php-7.2.0 |
|
#
269d1601 |
| 22-Nov-2017 |
Scott |
Fix bug #75409
|
Revision tags: php-7.1.12, php-7.0.26, php-7.1.12RC1, php-7.2.0RC6, php-7.0.26RC1, php-7.1.11, php-5.6.32, php-7.2.0RC5, php-7.0.25, php-7.1.11RC1, php-7.2.0RC4, php-7.0.25RC1, php-7.1.10, php-7.2.0RC3, php-7.0.24, php-7.2.0RC2, php-7.1.10RC1, php-7.0.24RC1, php-7.1.9, php-7.2.0RC1, php-7.0.23, php-7.1.9RC1, php-7.2.0beta3, php-7.0.23RC1, php-7.1.8, php-7.2.0beta2, php-7.0.22, php-7.1.8RC1, php-7.2.0beta1, php-7.0.22RC1, php-5.6.31, php-7.0.21, php-7.1.7, php-7.2.0alpha3, php-7.1.7RC1, php-7.0.21RC1, php-7.2.0alpha2, php-7.1.6, php-7.2.0alpha1, php-7.0.20, php-7.1.6RC1, php-7.0.20RC1, php-7.1.5, php-7.0.19, php-7.0.19RC1, php-7.1.5RC1, php-7.1.4, php-7.0.18 |
|
#
4bebcb84 |
| 10-Apr-2017 |
Xinchen Hui |
Fixed condition check
|
Revision tags: php-7.1.4RC1, php-7.0.18RC1, php-7.1.3, php-7.0.17, php-7.1.3RC1, php-7.0.17RC1 |
|
#
51358281 |
| 15-Feb-2017 |
Benjamin Robin |
Fixed bug #74105 If getrandom syscall is unavailable (ENOSYS), try to fallback on /dev/urandom.
|
Revision tags: php-7.1.2, php-7.0.16, php-7.0.16RC1, php-7.1.2RC1, php-5.6.30, php-7.0.15, php-5.6.30RC1, php-7.1.1RC1, php-7.0.15RC1, php-7.1.1, php-5.6.29, php-7.0.14, php-7.1.0, php-5.6.29RC1, php-7.0.14RC1, php-7.1.0RC6, php-5.6.28, php-7.0.13, php-5.6.28RC1, php-7.1.0RC5, php-7.0.13RC1, php-7.1.0RC4, php-5.6.27, php-7.0.12, php-7.1.0RC3, php-5.6.27RC1, php-7.0.12RC1, php-5.6.26, php-7.1.0RC2, php-7.0.11, php-5.6.26RC1, php-7.1.0RC1, php-7.0.11RC1, php-7.1.0beta3, php-5.6.25, php-7.0.10, php-7.1.0beta2, php-5.6.25RC1, php-7.0.10RC1, php-7.1.0beta1, php-5.6.24, php-7.0.9, php-5.5.38, php-5.6.24RC1, php-7.1.0alpha3, php-7.0.9RC1, php-7.1.0alpha2, php-7.0.8, php-5.6.23, php-5.5.37, php-5.6.23RC1, php-7.0.8RC1, php-7.1.0alpha1, php-5.6.22, php-5.5.36, php-7.0.7, php-5.6.22RC1, php-7.0.7RC1, php-7.0.6, php-5.6.21, php-5.5.35, php-5.6.21RC1, php-7.0.6RC1, php-5.6.20, php-5.5.34, php-7.0.5, php-5.6.20RC1, php-7.0.5RC1, php-5.6.19, php-5.5.33, php-7.0.4, php-5.6.19RC1, php-7.0.4RC1, php-5.6.18, php-7.0.3, php-5.5.32, php-5.6.18RC1, php-7.0.3RC1, php-5.6.17, php-5.5.31, php-7.0.2 |
|
#
14c72cc5 |
| 23-Dec-2015 |
Leigh |
Fix check for linux getrandom syscall
|
#
478f119a |
| 04-Jan-2017 |
Sammy Kaye Powers |
Update copyright headers to 2017
|
#
c3361f16 |
| 19-Oct-2016 |
Leigh |
Add php_random_int internal API This is the internal API compliment to `php_random_bytes`
|
#
2eb1f38d |
| 01-Jan-2016 |
Lior Kaplan |
Happy new year (Update copyright to 2016)
|
Revision tags: php-7.0.2RC1, php-5.6.17RC1, php-7.0.1RC1, php-7.0.0, php-5.6.16, php-7.0.0RC8, php-7.0.0RC7, php-5.6.16RC1, php-5.6.15, php-7.0.0RC6 |
|
#
c0ce2281 |
| 21-Oct-2015 |
Scott |
Update random.c Supersedes #1589
|
#
908f67b1 |
| 08-Dec-2015 |
Anthony Ferrara |
Expose php_random_bytes as a first-class API within internals This also defines two macros: php_random_bytes_throw and php_random_bytes_silent depending on use case which will throw exceptio
Expose php_random_bytes as a first-class API within internals This also defines two macros: php_random_bytes_throw and php_random_bytes_silent depending on use case which will throw exceptions or not respectively
show more ...
|
Revision tags: php-7.0.1, php-5.6.15RC1 |
|
#
00e3b761 |
| 14-Oct-2015 |
Scott |
Update random.c Ref: https://github.com/jedisct1/libsodium/commit/beb826f6fd173cff4473c8b7614033dbd4803500
|
#
faf835be |
| 30-Oct-2015 |
Leigh |
Use arc4random on OpenBSD 5.5+ and NetBSD 7+ As discussed with @weltling, keeping arc4random on the condition that the OS has a solid implementation of it
|
#
a5351023 |
| 26-Oct-2015 |
Leigh |
Remove arc4random There has been a lot of discussion around whether arc4random should be included. Given how many different impementations of it are in the wild, we can't guarantee a secure
Remove arc4random There has been a lot of discussion around whether arc4random should be included. Given how many different impementations of it are in the wild, we can't guarantee a secure implementation on all platforms.
show more ...
|
Revision tags: php-7.0.0RC5 |
|
#
63617a67 |
| 05-Oct-2015 |
Scott |
Fixed bug #70641 (Random_* - Better compatibility on Linux distros) See: * https://bugs.php.net/bug.php?id=70641 * https://github.com/php/php-src/pull/1513#issuecomment-145571829
|
Revision tags: php-5.5.30, php-5.6.14, php-7.0.0RC4 |
|
#
694b9af5 |
| 28-Sep-2015 |
Scott |
Remove makedev() check.
|
#
46aa6286 |
| 21-Sep-2015 |
Scott |
Different error message if makedev check fails
|
Revision tags: php-5.6.14RC1, php-7.0.0RC3 |
|
#
6554f721 |
| 09-Sep-2015 |
Scott |
Add support for getrandom(2), add type check on file descriptor Fix to_read, throw exception if syscall fails Fixes thanks to feedback from sarnold at ##crypto on freenode
Add support for getrandom(2), add type check on file descriptor Fix to_read, throw exception if syscall fails Fixes thanks to feedback from sarnold at ##crypto on freenode Correction on error conditions Remove dead code (thanks @defuse) It turns out getrandom can take >256, getentropy refuses. Better semantics Thanks @defuse for catching my silly mistake here Cast to size_t to be explicit Let's simplify the logic a bit Let's be consistent; define everything before we do any logic Continuously check that the file descriptor is still a valid one Add device type check on fd initialization
show more ...
|
#
c12917aa |
| 08-Sep-2015 |
Bob Weinand |
Merged RFC Random Functions Throwing Exceptions in PHP 7 Squashes commits from PR #1397 commit cd5dcc8c9eb43603d908abcea69c9e18df0f2ed5 Author: SammyK <sammyk@sammykmedia.com> Da
Merged RFC Random Functions Throwing Exceptions in PHP 7 Squashes commits from PR #1397 commit cd5dcc8c9eb43603d908abcea69c9e18df0f2ed5 Author: SammyK <sammyk@sammykmedia.com> Date: Tue Sep 8 13:53:42 2015 -0500 Add min max samezies commit b719499218a4e84efecd4dc1d4235d16142c9793 Author: SammyK <sammyk@sammykmedia.com> Date: Wed Sep 2 07:00:25 2015 -0500 Make random_bytes() throw Error when $length <= 0 and random_int() throw Error when $min > $max commit 0cca557291c278716ec4b00b32fc2bdc1c1c8848 Author: SammyK <sammyk@sammykmedia.com> Date: Wed Sep 2 06:55:59 2015 -0500 Make random_*() functions throw Error exception when random bytes cannot be obtained commit 998c7f1e209123605b41139e8d9093075ce16bd6 Author: SammyK <sammyk@sammykmedia.com> Date: Wed Sep 2 06:41:20 2015 -0500 Make random_*() functions throw TypeError when zend_parse_parameters fails commit 99d305c18820ff55d82d952777cbcdf1cf0158be Author: SammyK <sammyk@sammykmedia.com> Date: Mon Jul 6 19:50:47 2015 -0500 Make exceptions less specific commit b042dfab290713366741a663a420cf12bf802f39 Author: SammyK <sammyk@sammykmedia.com> Date: Mon Jul 6 17:20:13 2015 -0500 Upgrade warnings to RuntimeExceptions
show more ...
|
Revision tags: php-5.6.13, php-7.0.0RC2, php-5.5.29, php-5.4.45, php-5.6.13RC1, php-7.0.0RC1 |
|
#
cbcacbb2 |
| 12-Aug-2015 |
Anatol Belski |
improve condition read() == 0 is EOL
|
Revision tags: php-5.6.12, php-5.5.28, php-7.0.0beta3, php-5.4.44, php-5.6.12RC1, php-7.0.0beta2, php-7.0.0beta1, php-5.6.11, php-5.5.27, php-5.4.43 |
|
#
4a2e40bb |
| 30-Jun-2015 |
Dmitry Stogov |
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
|
Revision tags: php-5.6.11RC1, php-5.5.27RC1, php-7.0.0alpha2, php-5.5.26, php-7.0.0alpha1, php-5.6.10, php-5.4.42, POST_PHP7_NSAPI_REMOVAL, PRE_PHP7_NSAPI_REMOVAL, php-5.6.10RC1, php-5.5.26RC1, php-5.5.25, php-5.6.9, php-5.4.41 |
|
#
cf7e5357 |
| 10-May-2015 |
Lauri Kenttä |
random_int: Fix power of two check. (x & ~x) is always 0. ((x & (~x + 1)) != x) works. ((x & (x - 1)) != 0) works too.
|
#
dd269262 |
| 09-May-2015 |
SammyK |
Add tests for CSPRNG, fix C99 comments Also replace one return; with RETURN_FALSE; for consistency.
|
Revision tags: php-5.6.9RC1, php-5.5.25RC1, php-5.6.8, php-5.5.24, php-5.4.40, php-5.6.8RC1, php-5.5.24RC1, php-5.6.7, php-5.5.23, php-5.4.39, php-5.6.7RC1, php-5.5.23RC1, POST_PHP7_EREG_MYSQL_REMOVALS, PRE_PHP7_EREG_MYSQL_REMOVALS |
|
#
5f1b83e9 |
| 21-Feb-2015 |
Leigh |
Improve CSPRNG implementation
|
Revision tags: php-5.6.6, php-5.5.22, php-5.4.38 |
|
#
bc54d139 |
| 13-Feb-2015 |
SammyK |
Initial implementation for CSPRNG API
|