Martin Hujer
c5935bf963
Drop paragonie/random_compat from dependencies
...
It is not necessary anymore, because the minimal required version was
already set to PHP 7
2020-01-18 12:13:08 -06:00
Teoh Han Hui
b6ca0903b9
Fix typo for PHP version requirement
2020-01-18 12:13:08 -06:00
Ben Ramsey
5d7ee63f1c
Update dev requirements and test suite for PHP 7+ only
2020-01-18 12:13:07 -06:00
Martin Hujer
049d5acf7a
Use ::class constants where possible
...
It helps with refactorings and static analysis, because you can easily
tell if the class is missing or not.
2020-01-18 12:13:07 -06:00
Jildert Miedema
225eb3b4c1
Set minimum version to PHP 5.6 and use PHP 5.5 style ::class constants
2020-01-18 12:13:07 -06:00
Mathieu TUDISCO
e535e89708
Fix typo
2020-01-17 10:16:13 -06:00
Ben Ramsey
eb1645bc72
Add behavior test for TimestampFirstCombCodec
2020-01-13 10:49:53 -06:00
Ben Ramsey
da6fcde177
Add tests to ensure consistent behavior from 3.x to 4.x
2020-01-08 16:47:00 -06:00
Ben Ramsey
f6da4ae7c5
Bump copyright year to 2020
2020-01-02 12:51:30 -06:00
Ben Ramsey
7779489a47
Fix CHANGELOG links
3.9.2
2019-12-17 02:18:51 -06:00
Ben Ramsey
21a981c29c
Update CHANGELOG for 3.9.2 release
2019-12-17 02:04:50 -06:00
Ben Ramsey
b39ec78f6e
Check whether sysfs is readable before attempting to read it
...
Fixes #260
2019-12-17 02:01:14 -06:00
Ben Ramsey
ed4223e250
Add scripts to build Docker images for alternate CPU arch testing
2019-12-06 21:45:23 -08:00
Ben Ramsey
2c87e46b63
Require builds on PHP 7.4 to pass and allow installation on PHP 8
2019-12-06 21:43:54 -08:00
Ben Ramsey
2ed5a60a61
Fix "access array offset on value of type null" errors
2019-12-06 21:24:32 -08:00
Ben Ramsey
e1761af875
Disable deprecation messages for now
2019-12-06 17:55:09 -08:00
Ben Ramsey
0619916146
Turn of PHPUnit converting deprecations to exceptions
2019-12-06 17:06:07 -08:00
Ben Ramsey
0cc0217880
Mount the same path inside the container so coverage report is accurate
2019-12-06 15:52:08 -08:00
Ben Ramsey
7d82d45152
Do not proxy php-coveralls through the test container (if applicable)
2019-12-06 15:19:14 -08:00
Ben Ramsey
6f970cbd08
Run test commands individually on Travis CI
...
Using Composer's run-script to run all the commands together appears to
be encountering a segfault at some point, and it is difficult to debug,
since it seems to be intermittent.
2019-12-06 15:00:14 -08:00
Ben Ramsey
231027100a
Increase microseconds in another test to ensure enough time passes
2019-12-06 14:54:08 -08:00
Ben Ramsey
9e48187656
Add slightly more sleep to ensure timestamps don't collide
2019-12-04 17:09:13 -08:00
Ben Ramsey
5225fb3c82
Upgrade mockery and parallel linter
2019-12-04 17:02:35 -08:00
Ben Ramsey
5375d53594
Upgrade to a newer version of PHP_CodeSniffer
2019-12-04 16:45:09 -08:00
Ben Ramsey
0726ab03ac
Remove Composer cache configuration for Travis CI
...
This might be causing permissions issues, since the system user and the
Docker container root user are both trying to write to this location.
2019-12-04 16:19:33 -08:00
Ben Ramsey
8c055ec8b2
Do not run Docker in interactive mode
2019-12-03 18:55:55 -08:00
Ben Ramsey
29768e68e3
Run ARM containers on arm64 architecture
2019-12-03 18:30:56 -08:00
Ben Ramsey
9bdaec6f19
Add bsdmainutils for hexdump utility
2019-12-03 18:13:21 -08:00
Ben Ramsey
6e48780731
Only remove the last dot if it is an X.Y.Z version number
2019-12-03 18:07:07 -08:00
Ben Ramsey
8f452d591a
Put the command in quotation marks to mitigate syntax errors
2019-12-03 17:58:49 -08:00
Ben Ramsey
ed35e368c0
Use portable equality test
2019-12-03 17:51:09 -08:00
Ben Ramsey
7bee600f4f
Attempt to fix syntax error
2019-12-03 17:46:51 -08:00
Ben Ramsey
cc4b92812e
Set executable bit so that Travis CI can run the script
2019-12-03 17:32:14 -08:00
Ben Ramsey
671772fffe
Run tests on 32-bit systems on Travis CI
2019-12-03 17:27:54 -08:00
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