- Made compatible with XP 12 - @thekid
- Added PHP 8.4 to the test matrix - @thekid
- Merged PR #27: Migrate to new testing library - @thekid
- Merged PR #26: Migrate to baseless tests - @thekid
- Fixed vagary of stream_select() sometimes not preserving array keys. This occurs sometimes (?!) in PHP 7.0 and PHP 7.1 even though bug 53427 was fixed in PHP 5.4.1, see https://bugs.php.net/bug.php?id=53427 (@thekid)
- Merged PR #22: Asynchronous server with finer-grained I/O control (@thekid)
- Fixed package reflection for
peer.server
by deferring the check forext/pcntl
until server implementations based on its functionality are instantiated, not just loaded (@thekid)
- Merged PR #24: Simplify peer.net API, implementing features sugggested in issue #23 (@thekid)
- Fixed "Creation of dynamic property" warnings in PHP 8.2 - @thekid
- Made compatible with XP 11 and
xp-framework/logging
version 11.0.0 (@thekid)
- Fixed timeouts for reading from sockets with newer PHP 8.1 builds (@thekid)
- Fixed floating point values for
Socket::setTimeout()
- @thekid - Fixed warning Declaration of AsyncServer::listen($socket, $protocol) should be compatible in PHP 7.0, 7.1 and 7.2 (@thekid)
- Merged PR #19: Add support for shortened netmasks - @kiesel
- Fixed stream_select(): Argument 5 ($microseconds) should be null instead of 0 when argument 4 ($seconds) is null warning in PHP 8.1 (@thekid)
- Fixed issue #18: IPv4 addresses using octal and hexadecimal notation (@thekid)
- Fixed handling in async server for interrupted reads - @thekid
- Implemented PR #17: Implement asynchronous server. This adds the new
class
peer.server.AsyncServer
and changes thehandleData()
method in protocol to be able to return a generator. (@thekid)
- Fixed issue #16: PHP 8+ compatibility: ext/sockets after it changed from resources to opaque objects. (@thekid)
- Fixed issue #15: PHP 8.1 compatibility: Socket select argument types (@thekid)
- Prevented warnings when building and extracting query in PHP 8.1 (@thekid)
- Fixed issue #14: Discover SOMAXCONN programmatically if not defined (@thekid)
- Fixed "Only the first byte will be assigned to the string offset" warning in PHP 8.0 (@thekid)
- Implemented xp-framework/rfc#334: Drop PHP 5.6:
. Heads up: Minimum required PHP version now is PHP 7.0.0
. Rewrote code base, grouping use statements
. Converted
newinstance
to anonymous classes . Rewroteisset(X) ? X : default
toX ?? default
(@thekid)
- Made compatible with XP 10 - @thekid
- Fixed two more Array and string offset access syntax with curly braces is deprecated warnings (@thekid)
- Made compatible with PHP 7.4 - refrain using
{}
for string offsets (@thekid) - Fixed issue xp-forge/web/#57: Call to undefined method xp::stringOf() (@thekid)
- Preserve keys in arrays passed to
Sockets::select()
- @thekid
- Fixed issue #12: Changed
Sockets::select()
to return NULL instead of throwing an error when receivingEINTR
, e.g. because of SIGINT. (@thekid)
- Merged PR #11: Raise exceptions when pcntl extension is not loaded or disabled. Previously, this would fail more or less silently later on! (@thekid)
- Made compatible with
xp-framework/logging
version 9.0.0 - @thekid
- Fixed Inet4Address not implementing
lang.Value
- @thekid
- Fixed server implementation to run housekeeping after a given timeout period, which defaults to 60 seconds. (@thekid)
- Fixed issue #10: Select(60, 0) failed - @thekid
- Fixed issue #9: ServerSocket binds tcp://::1:8080 by default - @thekid
- Merged PR #8: Make ServerSocket use built-in streams. This removes the
hard dependency on the sockets extension for the
peer.server
API. If it's available, the code will continue to use it as default until the next major release of this library. Otherwise, the built-in streams and PHP's stream_socket_server() will be used. (@thekid)
- Fixed certificate validation problem when connecting to
localhost
via SSL. Issue #2 caused this problem by forcing sockets using localhost as hostname to connect to 127.0.0.1 (@thekid)
- Fixed issue #6: Missing dependency on xp-framework/logging - @thekid
- Merged PR #5: Pass SOMAXCONN to listen() call - @thekid
- Heads up: Dropped PHP 5.5 support - now requires PHP 5.6 minimum! (@thekid)
- Merged PR #3: XP9 Compat. Heads up: peer.Socket, peer.URL, the
INetAddr implementations in peer.net as well as peer.net.Network now
implement
lang.Value
instead of extendinglang.Object
. (@thekid)
- Trimmed error messages - those under Windows include a traling
\r\n
. (@thekid)
- Fixed compatibility with PHP 7.2 - empty optional parts inside a regular expression seem to be returned as NULL instead of empty strings; see https://bugs.php.net/bug.php?id=73947 (@thekid)
- Added forward compatibility with XP 8.0.0 - @thekid
- Changed
localhost
to always refer to127.0.0.1
. If you need to connect using IPv6, use::1
. See issue #2 for an explanation. (@thekid) - Allowed binding servers to IPv6 addresses - @thekid
- Merged pull request #1: Separate connect & enable crypto. This way, SSL / TLS errors can be distinguished from connection failures. (@kiesel)
- Refactored test codebase to no longer rely on net.xp_framework.unittest package from XP core (@thekid)
- Adopted semantic versioning. See xp-framework/rfc#300 - @thekid
- Added version compatibility with XP 7 - @thekid
- Extracted from the XP Framework's core - @thekid