Ben Ramsey
242f83df0c
Fix typo in changelog
2019-11-30 21:17:02 -08:00
Ben Ramsey
5ac2740e0c
Remove jobs exclusions section left over from previous test
3.9.1
2019-11-30 20:55:27 -08:00
Ben Ramsey
fe5f9c0772
Run Travis CI builds on big endian (s390x) CPUs
2019-11-30 20:45:00 -08:00
Ben Ramsey
80610e0d53
Update changelog for the 3.9.1 release
2019-11-30 20:36:45 -08:00
Ben Ramsey
692175901d
Fix RandomNodeProvider behavior on 32-bit systems
...
The 6 bytes obtained from `random_bytes()` is a 48-bit integer, which
cannot be converted to decimal on a 32-bit system, without being
implicitly cast to a float by PHP. This was causing problems with
setting the multicast bit, and it led to non-random node values.
This new approach splits the 6 bytes up into two 3-byte values, each a
24-bit integer, and applies the multicast bit to the most significant
bits before re-combining the bytes as a string.
2019-11-30 20:26:42 -08:00
Ben Ramsey
8fde15adcc
Update changelog for the 3.9.0 release
3.9.0
2019-11-30 15:55:53 -08:00
Ben Ramsey
d415409a74
Update changelog for unreleased changes
2019-11-30 15:20:26 -08:00
André Filipe
84fe6cf755
Removed some else/elseif and added some early returns to make the code a little easier to read, nothing changes on the big picture
2019-11-30 15:10:48 -08:00
Ben Ramsey
f1e27fc9e8
Apply coding standards to functions.php
2019-11-30 14:56:46 -08:00
Ben Ramsey
35cf50d7b4
Add tests for the function API
2019-11-30 14:26:27 -08:00
Ben Ramsey
1273cfaf39
Update param typehint to accept UuidInterface as v3/v5 namespace
2019-11-30 14:15:06 -08:00
Ben Ramsey
be88f95a50
Backport 2ec28dd to the 3.x series
2019-11-30 14:14:41 -08:00
Matias Navarro Carter
2ec28dd736
Function api created
...
Function api is a set of simple autoloaded functions to create uuids proxying the Uuid class static methods.
They provide easy and clean ways of just creating string represented uuids instead of the class.
2019-11-30 13:53:03 -08:00
Nikita Konstantinov
580027e79b
Remove redundant bitwise operations
2019-11-30 13:39:14 -08:00
Viktor Szépe
bc201fe3e4
Add uuid PECL stubs
2019-11-30 13:33:54 -08:00
Ben Ramsey
207f46c40b
Add CodeTriage message back to CONTRIBUTING.md
2019-11-30 13:16:47 -08:00
Ben Ramsey
64ba9a2767
Clean up code according to PhpStorm inspections report
2019-11-30 13:14:52 -08:00
Ben Ramsey
feb3eb50d1
Revert "Mark toString() method as deprecated, scheduled for removal in 4.0.0"
...
This reverts commit 4c467ce4d5 .
For more information, please see the discussion at:
https://github.com/ramsey/uuid/commit/4c467ce4d5a72c3cf0832c813d4d84d222c3d4bb#commitcomment-31174263
Also refer to the discussion at:
https://github.com/ShittySoft/symfony-live-berlin-2018-doctrine-tutorial/pull/3#issuecomment-460441229
TL;DR: I am retaining `toString()` for improved static analysis and
long-term stability.
2019-11-30 12:33:16 -08:00
Ben Ramsey
3f43661fdc
Create stubs for testing uuid_* methods for environments without pecl/uuid
2019-11-30 12:19:43 -08:00
Ben Ramsey
4a3ad2d53e
Merge branch 'bkayranci-3.x'
2019-11-30 12:19:33 -08:00
Ben Ramsey
555e5c1102
Test usage of PHP_OS constant
2019-11-30 12:18:43 -08:00
Ben Ramsey
92d12eb5c6
Merge branch '3.x' of https://github.com/bkayranci/uuid into bkayranci-3.x
2019-11-30 11:51:54 -08:00
Ben Ramsey
39c610ea31
Clean up project documentation and repo metadata
2019-11-30 11:07:39 -08:00
Ben Ramsey
7fccb64486
Update Travis CI build matrix to support PHP 5.4 to 7.4
2019-11-30 09:10:09 -08:00
Ben Ramsey
657add4b3c
Fix mock invocation assertions
2019-11-30 09:10:09 -08:00
Ben Ramsey
f19b700bd8
Clean up dependencies
2019-11-30 09:10:09 -08:00
Ben Ramsey
ed9c494923
Add my username for GitHub Sponsors, pending acceptance to the beta
2019-11-30 09:10:09 -08:00
Ben Ramsey
d0e9ca5bb6
Create FUNDING.yml
2019-11-30 09:10:09 -08:00
devrck
bcf6c3d86b
Use latest repo for coveralls, satooshi repo is abandoned
2019-11-30 09:10:09 -08:00
Ben Ramsey
6b5ba08f03
Add CodeTriage statement
2019-11-30 09:10:09 -08:00
Andrey Bolonin
b715a258fa
Update .travis.yml
2019-11-30 09:10:09 -08:00
Alessandro Minoccheri
c4cc058f3d
change array declarations
2019-11-30 09:10:09 -08:00
Ben Ramsey
2074056769
Remove unused tools scripts
2019-11-30 09:10:09 -08:00
Ben Ramsey
466629a399
Use a high-strength generator by default, when using RandomLibAdapter
2019-11-30 09:10:09 -08:00
Ben Ramsey
0cec25689d
Update the changelog to follow the keepachangelog.com suggested format
2019-11-30 09:10:09 -08:00
Andreas Möller
59f7202226
Enhancement: Normalize composer.json
2019-11-30 09:10:09 -08:00
Martin Hujer
bfc4afdf1f
Tests: configure cacheDir for AspectMock
2019-11-30 09:10:09 -08:00
Martin Hujer
f3e0fed2d7
Drop remnants of HHVM from tests
...
It was removed from Travis in c479cdd42f
2019-11-30 09:10:09 -08:00
Ben Ramsey
1b608e7e01
Remove test that fails because of qualified function call
2019-11-30 09:10:09 -08:00
karsasmus
2824db17c8
Change library ircmaxell/random-lib to paragonie/random-lib
2019-11-30 09:10:09 -08:00
Türkalp Burak KAYRANCIOĞLU
c0183c581e
PHP_OS predefined constant was used instead of php_uname() function.
2019-10-26 13:34:38 +03:00
Ben Ramsey
4c467ce4d5
Mark toString() method as deprecated, scheduled for removal in 4.0.0
2018-08-12 10:49:01 -05:00
Ben Ramsey
59c8bb0840
Update the deprecation messages
2018-08-12 09:43:21 -05:00
Ben Ramsey
cd92bfa43c
Mark SodiumRandomGenerator as deprecated
2018-08-11 21:30:34 -05:00
Ben Ramsey
7397e2f431
Mark MtRandGenerator and OpenSslGenerator as deprecated
2018-08-11 21:23:49 -05:00
Ben Ramsey
5d5eab97ee
Add ext-json as a dependency
2018-08-05 16:59:04 -05:00
Ben Ramsey
d09ea80159
Update CHANGELOG for the 3.8.0 release
3.8.0
2018-07-19 18:38:55 -05:00
Ben Ramsey
93a19b8133
Fix failing build due to coding standards violation
2018-07-19 17:19:38 -05:00
Ben Ramsey
8d621488c4
Check whether passthru() is disabled
...
If passthru() is disabled in php.ini, this will force the
SystemNodeProvider to return `false` for the node. Using the default
FallbackNodeProvider, ramsey/uuid will default to the
RandomNodeProvider, in these cases.
Closes #114
2018-07-19 16:53:00 -05:00
Ben Ramsey
735eb7e3c9
Add ext-ctype as a suggested extension
2018-07-19 15:48:43 -05:00