Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Community News:
Latest PECL Releases (11.24.2026)
Nov 24, 2026 @ 08:05:25

Latest PECL Releases:

  • redis 6.4.0RC1
    --- Sponsors ---

    A-VISION Advisering en Begeleiding B.V. - https://github.com/A-VISION-BV Avtandil Kikabidze - https://github.com/akalongman Boring Observability - https://github.com/boring-o11y Geoffrey Hoffman - https://github.com/phpguru Open LMS - https://github.com/open-lms-open-source Salvatore Sanfilippo - https://github.com/antirez Scott Helme - https://github.com/ScottHelme Ty - https://github.com/karock

    --- 6.4.0RC1 ---

    https://github.com/phpredis/phpredis/releases/tag/6.4.0RC1

    Changes since 6.3.0 add new Redis and Valkey commands, explicit reconnection APIs, an optional phpser serializer, and persistent connections for ZTS builds. They also improve protocol validation, cluster reliability, session handling, and performance.

    Fixed:

    • Preserve signed numeric field names in XADD, restoring 6.3.0 behavior for negative fields and integer boundaries [8cb76f62] (michael-grunder)
    • Preserve signed numeric stream names in XREAD and XREADGROUP, including prefixes and cluster routing [687c3e0f] (michael-grunder)
    • Allow RedisCluster SUBSCRIBE and PSUBSCRIBE channels and patterns to span hash slots while preserving prefixes [8d92f078] (michael-grunder)
    • Fix incorrect cluster slot validation in standalone SSUBSCRIBE commands [938a2ca2] (michael-grunder)
    • Restore 6.3.0 bitop() argument parsing, preserving key conversion and returning false for too few arguments or a non-string operation [3b0f0296] (michael-grunder)
    • Prevent crashes or incorrect slot errors in RedisCluster EVAL commands with invalid key counts, restoring false returns on server rejection [e5e2684f] (michael-grunder)
    • Close connections after incomplete or malformed replies so later commands cannot consume leftover reply data [40132ea9], [aa2f4889] (SnowySailor)
    • Release deferred transaction results after a disconnect and reject incomplete cluster transaction replies [af777f50] (michael-grunder)
    • Preserve the unencoded comparison operand for SET IFEQ with serializers and compressors enabled [5cd04301] (michael-grunder)
    • Restore SET option value parsing under associative GET keys, preserving NX, XX, and KEEPTTL flags [355a5c46] (michael-grunder)
    • Fix truncated subscriber counts in PUBSUB NUMSUB and PUBSUB SHARDNUMSUB replies [3ed46779] (michael-grunder)
    • Correct the RedisCluster::msetex return type to allow RedisCluster in transactions [cceb09d0] (michael-grunder)
    • Preserve 6.x string conversion for command arguments, including false values and PHP floating-point precision
    • Preserve literal SORT STORE destinations in 6.x while retaining cluster slot validation
    • Preserve SET conditional flags and comparison options, and restore expiry validation in SET and MSETEX [ee9779f2]
    • Preserve the 6.3.0 RedisCluster return declarations for compatibility with existing subclasses [1da3b6d8]
    • Restore 6.3.0 SCAN cursor compatibility by accepting boolean and floating-point initializers as a new scan while preserving exact string cursors above PHP_INT_MAX [59af2e3f] (michael-grunder)
    • Keep object serialization and custom restoration hooks compatible with 6.x while initializing RedisCluster routing safely before its constructor runs [7aed3011]
    • Preserve pipeline reply callbacks when reconnecting [d54431d1] (rechl)
    • Fix persistent connection pool liveness checks and reconnect handling [146ec813] (michael-grunder)
    • Re-send READONLY after reconnecting to a cluster replica [3606328d] (Etienne Zannelli)
    • Clear the cluster slot cache when nodes are unreachable [52e90650] (Victor Kislov)
    • Handle RedisCluster directed commands on uncovered slots [1351c824] (ebubekiryigit)
    • Fix RedisCluster directed commands in MULTI mode and reject UNWATCH during a transaction [e13d5d0c], [a1d93cab] (michael-grunder)
    • Fix cluster transaction result bookkeeping across slots belonging to the same master [a283471e] (michael-grunder)
    • Fix use-after-free defects and result ownership in cluster multi-key commands [2ef32c52], [ff9dede9] (michael-grunder)
    • Fix use-after-free and double-free paths when parsing malformed cluster replies [b29f5c85], [a14fdeca] (michael-grunder)
    • Validate pub/sub reply element types before using them as strings [cd04e21d], [e2a4f90d] (Raphael Paez) (michael-grunder)
    • Validate scan cursor types, configured node lists, and RedisArray reply values [57ddfefe] (michael-grunder)
    • Harden RESP length parsing, detect EOF correctly, and guard against bulk length overflow [5c6e2d2b], [c67d3e49], [7b2fdc6d], [1f02e67d] (Ilia Alshanetsky) (michael-grunder)
    • Reject malformed protocol replies and stop reading after failures instead of looping indefinitely [ea3ea564], [2298a200], [80093d53], [4bdcf155], [a6b7befd], [753a2d6d], [e5d2f8d6] (michael-grunder)
    • Validate CRLF terminators and handle short reads in standalone and cluster replies [a0ded702], [6e136252], [00c0f963] (EJ-Research) (michael-grunder)
    • Limit nested reply depth, cap array preallocation from server-supplied counts, and fix malformed-reply leaks [690a1098], [01791f23], [34c3fd9f] (michael-grunder)
    • Harden CLUSTER SLOTS and redirection parsing, including oversized hostnames [fbf5affa], [bb9e8769], [8b1280f3] (Ilia Alshanetsky) (michael-grunder)
    • Validate array replies for cluster scans and XCLAIM [f98c0837], [c97d754f] (michael-grunder)
    • Discard connections after failed or incomplete writes [48a46c71] (michael-grunder)
    • Fix GEOSEARCHSTORE reply handling [4e093bb0] (michael-grunder)
    • Preserve integer geohashes in GEOSEARCH metadata and validate the reply structure [a283471e] (michael-grunder)
    • Handle inline multibulk values and propagate raw reply read failures correctly [a283471e] (michael-grunder)
    • Route FLUSHDB and FLUSHALL to cluster primaries even when replica reads are enabled [b30ced74] (michael-grunder)
    • Fix crashes when setting RedisCluster TCP keepalive and handle missing sockets in setOption [997d5645], [cb4acc7d] (michael-grunder)
    • Use the correct option size when setting SO_KEEPALIVE [09d3dbf1] (pkramme)
    • Allow getLastError() and clearLastError() after a failed connection without throwing [fc948db8] (Nicolas Grekas)
    • Accept null for $seeds in RedisCluster::__construct [409508af] (derrickschoen)
    • Preserve numeric-string hash field names and use the correct format for zend_long values [7c1c1259], [fe67b8cb], [b8b29687] (Pavlo Yatsukhnenko) (arshidkv12)
    • Handle deserialized non-string members when pairing sorted-set values and scores [cab05051] (michael-grunder)
    • Preserve INFO strings that would overflow when parsed as exponent-form numbers [e9e338b5] (Pavlo Yatsukhnenko)
    • Handle PHP serialization failures for anonymous classes [b83af641] (arshidkv12)
    • Validate LZ4 decompressed lengths and NUL-terminate decompression buffers for PHP unserializers [2bf673c6], [cf95cd0a] (michael-grunder)
    • Reject invalid vector attributes in VSETATTR [234d1e7c] (michael-grunder)
    • Prevent backoff option overflow and handle empty keys when prefixing [a2936256] (michael-grunder)
    • Prevent crashes by disabling cloning of Redis, RedisArray, and RedisCluster objects [6e214c16] (michael-grunder)
    • Avoid persistent connection ID collisions and fix a connection pool memory leak [730dec06], [d90cfdb6] (michael-grunder)
    • Prevent undefined behavior in weighted session server selection and overflow in cluster session key lengths [025b0e97], [ae74b64b] (michael-grunder)
    • Report missing session servers and improve session compression errors [bf2047e0], [453c4788] (michael-grunder)
    • Fix PHP 8.6 compatibility for session handlers, INI APIs, and bin2hex [b8b765e6], [9a170831], [78c1c690], [e3273a90], [dd15a7dd], [f5460cc2] (Rasmus Lerdorf) (michael-grunder) (Andy Postnikov) (Remi Collet)
    • Fix compiler attribute detection [b192b0e4] (michael-grunder)
    • Correct XDELEX return types in Redis, RedisCluster, and RedisArray stubs [9f4302c0], [8dcaedae] (Pavlo Yatsukhnenko) (michael-grunder)

    Added:

    • Implement BLESS key eviction protection commands, including a lazy RedisBlessScanIterator for BLESS SCAN [4751fdf8] (michael-grunder)
    • Implement INCREX for Redis and RedisCluster [90fabdf9], [7c186d94] (Simon Hammes) (michael-grunder)
    • Implement BITRANGEINTARRAY [9222d5cc] (michael-grunder)
    • Add reconnect() to Redis and RedisCluster [a72ec1ab] (michael-grunder)
    • Add optional Redis::SERIALIZER_PHPSER support, including signing with phpser.key [b3e890b7] (Ilia Alshanetsky)
    • Support AGGREGATE COUNT in ZUNION[STORE] and ZINTER[STORE] [810984b5] (michael-grunder)
    • Implement HIMPORT [55f28493] (michael-grunder)
    • Implement LMOVEM and BLMOVEM [7419002a] (michael-grunder)
    • Implement SUNIONCARD and SDIFFCARD [533de1fe], [e2141f88] (michael-grunder)
    • Implement GCRA with the TOKENS option [10b77a42], [5b197316] (michael-grunder)
    • Implement MSETEX for Redis and RedisCluster [86eabb86], [41922b67] (michael-grunder)
    • Implement XDELEX and XACKDEL for Redis, RedisCluster, and RedisArray [635d87d5], [23cc7859], [8f1c07ff] (michael-grunder)
    • Implement DELEX [00c62de2], [93cb9211] (michael-grunder)
    • Implement DIGEST and the local _digest() helper, requiring PHP 8.1 or newer for local hashing [e2dd13ce], [107cc7aa] (michael-grunder)
    • Implement WAIT for RedisCluster and share command handling with WAITAOF [4de4f727] (michael-grunder)
    • Add redis.session.lock_release_cmd to select Lua, DELEX, or DELIFEQ for session lock release [e39d9b74] (michael-grunder)

    Changed:

    • Enable persistent connections in ZTS builds, with connections reused per thread [b37b2316] (Kevin Dunglas)
    • Mark connection options and context arguments as #[SensitiveParameter] [671e726e] (Nicolas Grekas)
    • Use cryptographically random session lock secrets [b112875b] (Ilia Alshanetsky)
    • Rework TLS context ownership and allocation for connections and cluster nodes [b97951cd] (michael-grunder)

    Documentation:

    • Add RedisArray method annotations and correct PHPDoc parameter, return, nullable, and variadic types [8597d3d7], [5afa8eb7], [9c9d0286], [b742bb8b], [6aea98f6], [26a73f46], [481f12f8], [8894de5a] (Michael Telgmann) (michael-grunder)
    • Document TLS options and clarify that connect() throws on failure [c28430e5], [6efd549a] (michael-grunder)
    • Document session read_timeout and the default persistent setting [0340599b], [c99c8634] (Sowmya Mallur) (brlin-tw)
    • Explain transactions inside pipelines and their reply formats [8ef2ee92] (g)
    • Document WAIT and WAITAOF [cd4cf653] (michael-grunder)
    • Document UNSUBSCRIBE and PUNSUBSCRIBE [6b481b6f] (michael-grunder)
    • Document class constants, backoff algorithms, and cluster failover strategies [49919b0e], [26cf6d94], [8ef349a2], [0981c2b7] (michael-grunder)
    • Expand helper method documentation and examples, and correct stub wording and types [d6437f5e], [abce1655], [c17f475c], [399346e5], [f23da62a], [806b7b3f], [1f3fb179] (michael-grunder)
    • Link API methods to Redis and Valkey command references [a46700cf], [76286d88] (michael-grunder)
    • Add syntax highlighting to generated API documentation and build it from develop [10c0bf0f], [1297c48c], [e460a859], [4cf670fe], [ae69e47a], [d45c4d29], [9edc2425], [38e56d57], [5fe08621], [d5b1576e] (michael-grunder)
    • Refresh generated API documentation, including new commands and iterator documentation [ecdc290b], [9e9ccbd4], [d4600a28], [df243455], [f5ed1704], [e6d0d119], [4e79159e], [39472124], [362ee55c] (michael-grunder)
    • Mention Dragonfly support in the README [2b71a968] (michael-grunder)

    Tests/CI:

    • Add PHP 8.6 to Linux, macOS, and Windows CI builds, using pinned igbinary and msgpack commits where needed [06e02248], [b5eb0dde] (michael-grunder)
    • Add an allowed-to-fail PHP master build and extension loading check to the release branch [de491b3e] (michael-grunder)
    • Allow multiple test filters and exclusions, and print commands for rerunning tests [07f620e7], [a2b98330], [2343369b] (michael-grunder)
    • Improve test diagnostics, fail-fast assertions, and compatibility with subclasses [4baad44b], [4a02f3dd], [2a0569ec], [b0d534e1], [43d72dad], [c92c0422], [506715fe], [e037b7ca], [10ae0080] (michael-grunder)
    • Reduce timing-test delays and make expiration assertions less sensitive to scheduling [09d496b2], [53ba9b4b], [c7227339], [e5f0df63], [777f7377], [7ae4014c] (michael-grunder)
    • Fix session and replication test races, and use explicit exit codes for session helpers [bccd60d4], [531b17e5], [3c65094e], [4bccf599] (michael-grunder)
    • Fix flaky EXISTS coverage with deterministic keys [82bf96c3] (KentarouTakeda)
    • Add numeric-string hash field regression coverage across execution modes [6f42a349], [0ef13108] (michael-grunder) (tillkruss)
    • Add MSETEX tests and fix expiry assertions [bd4989e0], [a033e40b], [074b7c7f] (michael-grunder)
    • Add XDELEX tests [8b4cfb72] (michael-grunder)
    • Fix _digest() tests on PHP versions before 8.1 and avoid deprecated is_long() on PHP 8.6 [0debad4c], [57b584f6] (michael-grunder)
    • Account for duplicate ZSCAN results in scan tests [33ee649c] (michael-grunder)
    • Skip unsupported DELEX options when testing Valkey [88050422] (Remi Collet)
    • Add PHP 8.5 to macOS and Windows CI, and fix the Homebrew configuration path [ac54591d], [a6313d1b] (thecaliskan)
    • Migrate Windows CI to php/php-windows-builder, use commit SHAs, and make binaries discoverable by PIE [8f8272db], [f14ce600], [de2e1b39] (Pavlo Yatsukhnenko) (michael-grunder)
    • Refactor CI jobs, install dependencies with PIE, and bound server startup waits [60eb01c4], [a01dec12], [e5c0ef7c], [7119dce1] (michael-grunder)
    • Replace KeyDB coverage with Dragonfly and test Valkey and Redis unstable builds [8b222585], [a283471e], [b7c382c8], [959dee1c] (michael-grunder)
    • Require Valgrind runs to pass and fix a flaky Sentinel test [a00d952d], [060a2c5e] (michael-grunder)

    Internal/Performance:

    • Introduce RedisCmd command construction and migrate standalone, cluster, and session command builders [2c5ef192], [4f3090f0], [875c088b], [939c8fed], [e81506bd], [b12a64fe] (michael-grunder)
    • Switch to the Fast Parameter Parsing API [c2d2254e] (Pavlo Yatsukhnenko)
    • Read multibulk strings directly into zend_string buffers and pre-size reply arrays [0c1b8b22], [da514c71], [798aa657] (Ilia Alshanetsky)
    • Remove a redundant liveness probe when reading bulk replies [640ed13f] (Ilia Alshanetsky)
    • Skip clock reads when no cluster timeout is set [44f49442] (Ilia Alshanetsky)
    • Avoid per-command and per-key allocations in cluster writes and RedisArray hashing, and redundant zero-filling during key prefixing [9623a663], [8b746bfc], [b9320359] (Ilia Alshanetsky)
    • Modernize Zend API usage and array traversal, and replace legacy aliases [8e1c2789], [d24528e1], [7d4fa613], [3401462e], [cd2a3963], [5acaba93] (Niels Dossche) (michael-grunder)
    • Consolidate scan handling [e64055bd] (michael-grunder)
    • Consolidate key prefixing [cd7996fb] (michael-grunder)
    • Improve cluster WATCH bookkeeping and cleanup on failures [4736b167] (michael-grunder)
    • Refactor command contexts and replace function-like macros with typed helpers [2ce9d949], [bc947026], [910c925f], [5377f588], [a9dd268a], [10e81b33], [d9aea09e] (michael-grunder)
    • Improve const-correctness, remove unnecessary casts, and restrict internal function linkage [7090338f], [e87e1668], [34e9a4ae], [4366a579], [887c5b19] (Simon Hammes) (michael-grunder)
    • Modernize session handling and remove obsolete code and fields [738cedd2], [741abf09], [b58ca169], [976e2384], [0017df83], [33a78a45], [4af1e20a], [d596a239] (michael-grunder)
    • Add --enable-redis-sanitizers and --enable-redis-analyzer build options [288e231b], [5fea4648] (michael-grunder)
    • Add agent development instructions and ignore generated dependency and vendor files [ea8a8672], [c8b79b16], [b30fe1d1], [9b17434e] (michael-grunder)
  • gRPC 1.84.4
    - gRPC Core 1.84.4 update
  • gRPC 1.85.4
    - gRPC Core 1.85.4 update
  • gRPC 1.86.0RC1
    - gRPC Core 1.86.0 update
  • openswoole 26.11.1
    . HTTP QUERY method (RFC 10008); form bodies are parsed into $request->post like POST, PUT, PATCH and DELETE (#414) . CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR in the native curl hook; with open_basedir set, values with "file" or "all" are refused (#412) . Bundled llhttp upgraded to 9.4.4 (#413) . Bundled nghttp2 HPACK code upgraded to 1.71.0 . Bundled hiredis upgraded to 1.5.1 . The HTTP parser is stricter: a space before a header colon, folded header lines and raw bytes above 0x7F in the request target get 400 Bad Request, in the server and the Coroutine HTTP client . The WebSocket server follows RFC 6455: unmasked client frames, unknown opcodes and a new message sent before a fragmented one is finished close the connection; ping, pong and close frames accept payloads up to 125 bytes . A CoroutineHttpClient with websocket_mask set to false can no longer send to an OpenSwoole WebSocket server, which now requires masked client frames . The HTTP/2 server rejects frames on a stream the client has closed, removes the padding of DATA frames, checks WINDOW_UPDATE increments, and with send_yield waits for the stream window . The HTTP/2 server and client reject header blocks with invalid Huffman padding, as RFC 7541 requires . SOCKS5 proxy target hosts, usernames and passwords longer than 255 bytes are refused, and a refused CONNECT reply fails the connection . Fix WebSocket frames losing their opcode and FIN flag with several reactor threads in SWOOLE_PROCESS mode . Fix WebSocket connections when the upgrade request is followed by more data in the same packet . Fix a fragmented WebSocket message with an empty first frame losing its opcode . Fix the payload of WebSocket ping and pong frames sent with the 16 bit length form . Fix multipart form data of an unfinished part being kept for the next request, and its temporary file and memory not being released . Fix Request::create()->parse() with a multipart body . Fix Response::create() with a CoroutineSocket . Fix chunked requests with Content-Length: 0 that do not end with a zero length chunk . Fix client certificates larger than the read buffer with ssl_client_cert_file . Fix DTLS connections above max_connection . Fix HTTP/2 GOAWAY frames carrying the error code in the flags . Fix buffer_high_watermark and buffer_low_watermark being reset when the server starts . Fix the $row argument of the PostgreSQL statement fetch methods being ignored . Fix a Lock becoming unusable in other processes after a child process exits . Fix a Table losing rows with concurrent writers after a child process exits . Fix Lock::lockwait() requiring an argument . Fix the open_redis_protocol parser with null bulk strings, integer elements and empty arrays . Fix the length protocol with unsigned 32 bit lengths of 2^31 and more . Fix the SOCKS5 handshake with short replies and IPv4 targets . Fix CoroutineClient::peek() with a length of 0 or less . Fix curl_setopt_array() not stopping at a refused option in the native curl hook . Fix HTTP/2 response header blocks larger than the header buffer . Fix HTTP/2 send_yield responses not ending when a send fails or the client resets the stream or closes the connection . Fix discarded HTTP/2 DATA frames not counting against the connection window . Fix the WebSocket fragment buffer not being released when a connection closes during a fragmented message . Fix Lock::destroy() in another process making the lock unusable for the process that created it . Fix the open_redis_protocol parser accepting bulk lengths below -1
  • zephir_parser 2.12.0
    ### Added - Enabled PHP 8.6 support ([zephir-lang/zephir#2670](https://github.com/zephir-lang/zephir/issues/2670)) - Support a keyword as the name of a named argument, such as `strlen(string: s)` or `is_a(class: c)`, as PHP allows ([zephir-lang/zephir#2824](https://github.com/zephir-lang/zephir/issues/2824))

    Fixed

    • Fixed an all-caps class name such as PDO failing to parse in a cast, a return type, a type hint or catch (zephir-lang/zephir#2824)
  • jsonpath 4.0.0
    ## Breaking changes - The minimum supported PHP version is now 8.1. PHP 8.0 support was dropped in 3.1.0 but was still allowed by `composer.json` and the PECL package metadata; both now require PHP 8.1 or newer. - The package API version is now 4.0.0.

    What's Changed

    • Add support for PHP 8.6 by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/214
    • Drop support for PHP 8.0 by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/206
    • Rename workflows for clarity and consistency by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/205
    • Update link to mk6i's GitHub profile by @crocodele in https://github.com/supermetrics-public/pecl-jsonpath/pull/207
    • Bump actions/checkout from 6 to 7 by @dependabot[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/211
    • Bump php/setup-php-sdk from 0.11 to 0.12 by @dependabot[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/208
    • Bump schneegans/dynamic-badges-action from 1.7.0 to 1.8.0 by @dependabot[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/209
    • Bump schneegans/dynamic-badges-action from 1.8.0 to 1.9.0 by @dependabot[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/212
    • Configure Renovate by @renovate[bot] in https://github.com/supermetrics-public/pecl-jsonpath/pull/210

    Full Changelog: https://github.com/supermetrics-public/pecl-jsonpath/compare/v3.1.0...v4.0.0

  • mongodb 1.21.14
    ## What's Changed ### Security * [v1.21] PHPC-2804 Do not expose the credential string in errors and logs by @kevinAlbs in https://github.com/mongodb/mongo-php-driver/pull/2234 ### Fixed * PHPC-2807 Fix build with GCC 15 in phongo_split_namespace by @GromNaN in https://github.com/mongodb/mongo-php-driver/pull/2223

    Full Changelog: https://github.com/mongodb/mongo-php-driver/compare/1.21.13...1.21.14

  • mongodb 2.1.14
    ## What's Changed ### Security * [v2.1] PHPC-2804 Do not expose the credential string in errors and logs by @kevinAlbs in https://github.com/mongodb/mongo-php-driver/pull/2235 * [v1.21] PHPC-2804 Do not expose the credential string in errors and logs by @kevinAlbs in https://github.com/mongodb/mongo-php-driver/pull/2234 ### Fixed * PHPC-2807 Fix build with GCC 15 in phongo_split_namespace by @GromNaN in https://github.com/mongodb/mongo-php-driver/pull/2223

    Full Changelog: https://github.com/mongodb/mongo-php-driver/compare/2.1.13...2.1.14

  • mongodb 2.5.8
    <!-- Release notes generated using configuration in .github/release.yml at 2.5.8 -->

    What's Changed

    Security

    • [v2.5] PHPC-2804 Do not expose the credential string in errors and logs by @kevinAlbs in https://github.com/mongodb/mongo-php-driver/pull/2236
    • [v2.1] PHPC-2804 Do not expose the credential string in errors and logs by @kevinAlbs in https://github.com/mongodb/mongo-php-driver/pull/2235
    • [v1.21] PHPC-2804 Do not expose the credential string in errors and logs by @kevinAlbs in https://github.com/mongodb/mongo-php-driver/pull/2234

    Fixed

    • PHPC-2807 Fix build with GCC 15 in phongo_split_namespace by @GromNaN in https://github.com/mongodb/mongo-php-driver/pull/2223

    Full Changelog: https://github.com/mongodb/mongo-php-driver/compare/2.5.7...2.5.8

  • maxminddb 1.15.0
    * The pure PHP reader now rejects non-string map keys with `InvalidDatabaseException` instead of a `TypeError`, a warning, or an implicit type conversion. * The pure PHP reader now rejects malformed metadata with `InvalidDatabaseException` instead of a `TypeError`, a warning, or an implicit type conversion. Missing optional `languages` and `description` fields default to empty arrays. * Missing gmp/bcmath support and offsets that exceed the platform limit now throw `MaxMindDbReaderUnsupportedPlatformException`. It extends `RuntimeException`, so existing catches continue to work. * The pure PHP reader also throws `UnsupportedPlatformException` when the metadata node count or the start of the data section exceeds the platform's integer limit. These cases no longer produce `InvalidDatabaseException` or overflow into a `TypeError`. * `phpinfo()` and `php --ri maxminddb` now show whether the extension was built with the bundled libmaxminddb or links a system library. The `libmaxminddb library version` row reads, for example, `1.14.0 (bundled)` or `1.9.1 (system)`. Pull request by Remi Collet. GitHub #289. * The PHPDoc of the pure PHP reader now lists the exceptions that its methods can throw: * The `MaxMindDbReader` constructor, `get()`, and `getWithPrefixLen()` declare `UnsupportedPlatformException`. The reader throws it when an integer needs gmp or bcmath and neither is installed, or a data offset exceeds the platform limit. * The constructor declares `UnexpectedValueException`. * `close()` declares `BadMethodCallException` in place of `Exception`. `metadata()` no longer declares `InvalidArgumentException`, which it cannot throw. * `MaxMindDbReaderDecoder::decode()` and `MaxMindDbReaderUtil::read()` declare their exceptions. * The bundled libmaxminddb used by `--with-maxminddb-bundled` builds of the extension is now 1.14.1. This fixes a build failure with `-Werror` on platforms where `ssize_t` is 32 bits, such as i686. * The classes in the pure PHP reader are now marked `@final`. They will be `final` in the next major version. Static analyzers such as PHPStan report a class that extends them. * On 64-bit Windows, the extension returned `uint32` and `uint64` values from 2^31 to `PHP_INT_MAX` as strings. It now returns them as integers.
  • swoole 6.3.0RC2
    - Support for the HTTP QUERY method. - The coroutine HTTP server can send 100 Continue. - Runtime hooks for socket-based standard streams STDIN/STDOUT/STDERR. - Coroutine preemption enabled in threaded builds. - Coroutine cancellation now carries a cancellation reason. - sendfile supports passing a file object. - The HTTP/2 coroutine client exposes trailing HEADERS frames via Response::$trailers. - SocketCoro adds export() to duplicate a socket fd. - The sockets extension warns about non-blocking and UNIX datagram limitations. - Sockets now track observed stream EOF separately. - Atomic adds acquire/release atomic operations. - name-resolver adds automatic service discovery lifecycle and isolates resolver state. - Added ssh2_set_timeout(). - Added ssh2_keepalive_config() and ssh2_keepalive_send(). - Added ssh2_send_signal(). - Accept trailing OWS after chunked transfer coding. - Handle optional whitespace in HTTP/1 headers. - Ignore 100-continue for HTTP/1.0 requests. - Handle HTTP body boundaries and 100 Continue. - Parse chunked requests precisely in the coroutine server. - The coroutine server's chunked request buffer can now grow. - Clean up trailers before terminating a chunked response. - Fix the completion determination for HTTP/1 trailers. - Ignore HTTP/1 request trailers. - Re-parse when subsequent data arrives while the request line is incomplete. - Preserve request fields across multiple parse calls. - Prevent underflow in the package length limit. - Preserve response header values from being rewritten. - Free the captured HTTP/1 content type. - Decompress the response body before passing it to write_func. - Output the Date header of static responses in GMT. - Harden static file response handling. - The upgrade/redis handler tolerates connections being closed concurrently. - Fix an HTTP IP memory leak. - Reject oversized HTTP Upgrade values. - Fix multipart upload temporary file errors. - Harden multipart parsing and upload lifecycle. - Keep uploaded file paths alive. - Retain upload cleanup after tmpfiles replacement. - Preserve overly long upload temporary directory paths. - Add bounds checking to URL encoding and allocate the output in one pass. - Fix HTTP/2 header and frame size handling. - Finalize HPACK decoding when response headers end. - Defer Content-Type setting until headers are complete. - Isolate request trailers and unify the body completion path. - The connection-level flow control window starts at 65535. - Validate the payload length of fixed-length frames before reading. - Reject GOAWAY frames with insufficient field length. - Limit GOAWAY debug data to the peer's frame size. - Send the correct PING payload and reject PING frames with an incorrect length. - Control frames no longer kill the worker when the buffer is full. - Reuse stream reset when rejecting an oversized body. - Fix HTTP/2 write stalls after stream termination. - Fix client sending while another write is pending. - Close the client connection on write failure. - Avoid crashes when releasing an incomplete response. - Fix double free and UAF caused by callbacks closing the connection in BASE mode. - Fix unpacking of masked compressed WebSocket frames. - Negotiate compression across multiple extension offers. - Grow the compression output buffer safely. - Reject unsuccessful WebSocket upgrades. - Reject WebSocket token parsing errors. - Fix socket initialization for the coroutine HTTP client. - Reject truncated responses at EOF. - Connection close state is tracked per request exchange. - Clean up download state without losing the retry target. - Preserve the request error on repeated close. - Handle chunked HTTP proxy responses. - Preserve SOCKS5 response boundaries. - Fix the lifecycle of queued cURL resume. - Sync curl fixes published in php-src for PHP 8.4. - Preserve curl multi select readiness when using the socket API. - Keep PHP stream callbacks on the request thread. - FastCGI preserves cookies and accepts response frames with padding. - Update the built-in FastCGI client and add response regressions. - Release async client references after the callback ends. - Check socket status before returning a connection to the pool. - Allow receiving fragmented packets under a custom package_length_func. - Allocate the swoole_client_select() pollfd array based on the total size of the three arrays. - Fix Redis server receive buffer handling. - Re-parse Redis fragmented requests from a clean state. - Add bounds checking for RESP numbers in get_number and parse. - Pass packet boundaries to Redis server number parsing. - Preserve exec errors, Redis command names, and cookie state. - pgsql tries the next host after a blocking connection timeout. - The PDO pgsql driver enforces connect_timeout. - Fix cancellation of pgsql query waits. - Empty PDO pgsql error messages no longer read ahead prematurely. - Move ODBC SQLParamData/SQLDescribeParam to the AIO thread pool. - Move ODBC SQLCloseCursor and statement SQLFreeHandle to the AIO thread pool. - Normalize empty credential lengths in the ODBC connection pool. - Oracle hooks server attachment during PDO connection. - Keep Oracle statement re-execution safe. - Fix SSH2 resource release lifecycle. - Wait for the shell exit status. - Refresh poll direction after EAGAIN. - Avoid integer overflow in ssh2_set_timeout(). - Allocate libssh2 memory using malloc. - Free the parsed URL when the wrapper path is rejected. - SFTP wrapper paths preserve # and ?. - SCP receive stops at premature EOF. - Sync upstream SCP receive write checks. - Fix Coroutine::setTimeLimit() precision and cleanup. - Allow clearing the time limit with 0. - Ignore external interrupts when preemption is disabled. - Fix coroutine exception delivery during SPL directory iteration. - Delayed resume no longer touches a finished EventWaiter. - Allocate the saved timeout array by element count. - Retain queued tasks after coroutine creation failure. - ssl_sendfile does not send more data than the requested size. - Limit header reception in length protocol recv. - swoole_coroutine_accept respects the caller's address buffer. - Coroutine lock count reentrancy and validate the holder on unlock. - Reject timer deadlines that would overflow before insertion. - Detach global timers before releasing them. - RSHUTDOWN cleans up PHP timers when there is no request heap. - Validate timer intervals on Windows and protect process tests. - After a force-unlock timeout, retain row locks for live holders (previous force unlocks have been rolled back). - Cache the configured default value for error reporting. - Propagate UnwindExit to ZendVM. - Preserve native zero-timeout stream behavior. - Apply stream timeouts to hooked write operations. - Hooked write operations cancelled after a partial write must fail. - Fix socket_recv behavior for empty datagrams and EOF. - Reject null bytes in IP stream addresses. - Let mysqlnd recognize hooked Unix sockets. - Reject setting global HTTP response headers in coroutines. - Preserve the cleanup path for synchronous failures in the factory. - Release streams on connection errors and stop after cancellation. - Initialize Windows stdio operations for include. - Register the after-fork hook during the MINIT phase. - Settings accept empty arrays and preserve enabled SSL. - Settings propagate exceptions and isolate thread callbacks. - Preserve the package limit when partially configuring settings. - Manage worker lifecycle and improve shutdown handling. - Preserve worker exit and advance reload in order. - Release the reactor of a worker stopped by a fatal error. - Restore the caller's worker when a BASE server stops. - Keep BASE connection boundaries local. - Initialize the port protocol only once before starting reactor threads. - get_port for worker threads can match SSL ports. - Fix server SSL context initialization. - Enforce server-side TLS peer verification. - Fix the return handling of Server Port set. - Accept pre-bound datagram sockets passed in by systemd. - Send FIN after peer shutdown on macOS. - Close the connection when a queued sendfile cannot start. - Close the connection when a queued sendfile cannot complete. - Close the connection directly on unrecoverable send errors. - Parse buffered packets when a paused connection resumes. - Keep the connection and avoid duplicate delivery when onPackage pauses an EOF protocol connection. - Settle delivered packets when onPackage pauses a connection. - Keep length protocol header reception within the buffer. - recv_with_length_protocol resets stale HTTP parse offsets. - Avoid signed overflow in default_length_func. - Fail pipe reads when readv errors on a chunk. - Keep the dgram pipe send buffer above the maximum IPC datagram size. - Unify the result contract of taskCo and taskWaitMulti. - Share atomic task IDs between workers and threads. - Isolate task results and fix idle and DTLS handling. - Validate task results and tighten failure cleanup. - Handle force-kill alarms synchronously and skip packaging stale large results. - Reject illegal task reply sources. - Clarify warnings for illegal task reply workers. - Name task stream sockets with the creator PID. - Restrict access to task stream sockets. - Restrict task message queues to the worker account. - process-pool supports explicit message queue access. - Reject message queue keys outside the key_t range. - Reuse the message bus across multiple starts. - Reject oversized worker_num instead of aborting. - Fix truncated ProcessPool stream packets. - Validate ProcessPool packet boundaries. - Release the master's system timers after start(). - Dispatch timers for synchronous workers. - Release MessageBus resources when the owner closes. - Release BASE event pool resources after shutdown. - Fix queued writes for thread workers. - Release startup arguments when thread creation fails. - Preserve the main thread's signal handlers when other threads exit. - PHP and server workers inherit blocked signals. - Preserve the signal mask when starting background threads. - Register SIGCHLD to the reactor thread in thread context. - Do not discard signals that arrive while a signal handler is executing. - Restore signal actions when removing listeners. - Reset signal listener state in forked child processes. - Clean up inherited handlers when there is no kqueue reactor. - Prevent worker processes from executing manager-specific signal handlers. - Child processes that inherited manager handlers no longer lose SIGTERM. - Reset inherited manager runtime state. - Defer handling of log reopen signals in synchronous processes. - Harden manager signals, task timeout cleanup, and core helper functions. - Retain pending reload tasks before initialization completes. - Prevent losing reload wakeups before waiting. - Cancel shutdown timers after worker exit. - Use pcntl_waitpid to preserve exit statuses of unrelated child processes. - Apply the configured CPU affinity to workers. - Fix cpu_affinity_ignore handling. - Fix CPU affinity IDs. - Validate affinity IDs against the number of CPUs. - get_connection_by_session_id validates the session id. - Do not narrow admin numeric identifier validation. - Restrict reactor thread information to the reactor owner. - Free exit callback results and validate admin parameters. - Fix handler types and stop on conversion exceptions. - Function aliases preserve variadic arguments. - Use reentrant localtime/gmtime for the logger and static handlers. - Reject duplicate construction of native resource objects. - Allow TCP listeners to rebind. - Complete pending closes and clean up UNIX paths. - Fix UNIX datagram address ownership. - recvfrom preserves the source address for empty datagrams. - Fix the length parameter of socket send and improve peek. - Interpret socket options at their respective protocol levels. - Initialize the option buffer before a short kernel reply. - Preserve incomplete packets after a receive timeout. - Allow SSL descriptor duplication and fix cross-platform regressions. - Preserve native coroutine socket errors. - Drain Windows IOCP operations before PHP close returns. - Fix IOCP completion errors and stale readiness dispatch. - Pass null to getaddrinfo() when no service is given. - Handle EPOLLERR on c-ares sockets to stop worker busy loops. - Use ares_socket_t for c-ares socket callbacks. - Randomize DNS request ids and only accept replies from DNS servers. - Change DNS request ids to sequential increments starting from a random value. - Avoid invalid weight conversion warnings in name-resolver. - io_uring records SSL_ERROR_ZERO_RETURN as SW_ERROR_SSL_RESET. - io_uring validates runtime compatibility. - io_uring allows compatible liburing minor versions. - Improve io_uring initialization error messages. - Preserve Atomic wakeups during interrupted waits. - Preserve futex timeout and non-zero value semantics. - Use usleep for non-futex atomic waits. - Prevent lost wakeups when the AIO thread pool shuts down. - Fix crashes caused by PHP requests starting in threads not created by Swoole.
  • openswoole 26.11.0
    . PHP 8.6 support . CURLOPT_SEEKFUNCTION support in the native curl hook on PHP 8.6 . CURLOPT_PREREQFUNCTION support in the native curl hook on PHP 8.4+ (Guzzle 7.12+) . PIE (PHP Installer for Extensions) support . Response::cookie() also sends Max-Age when an expiry time is set, like setcookie() (#310) . Hooked ssl:// and tls:// client streams use the same peer verification defaults as native PHP; set verify_peer to false to connect to servers with a self-signed certificate . Cookie values are encoded and decoded like PHP does: a "+" is kept and a space is %20, in the server and the HTTP clients; cookies with spaces set by earlier versions read back with "+" until they are set again; for a cookie name sent twice, the first value is used (#311) . OpenSwoole 27.2 will require PHP 8.4 or later; 26.11 is the last release series to support PHP 8.3 . Fix stream_socket_enable_crypto with tls (#401) . Fix io_uring build on Alpine Linux (#400) . Fix SSL client certificate lost in getClientInfo() when the worker pid is greater than 65535 . Fix curl_copy_handle() not keeping the CURLOPT_STDERR stream and callback data in the native curl hook . Fix preemptive scheduler crash on ZTS builds . Fix crash in the native curl hook when a curl multi handle is released after the event loop is destroyed . Fix enable_reuse_port having no effect on Linux because SO_REUSEPORT was not detected at configure time . Fix the http2_* server settings being ignored and not sent to clients in the SETTINGS frame . Fix max_idle_time closing active connections and ignoring fractions of a second . Fix a crash when a coroutine is canceled during file I/O . Fix stream_select() closing regular files . Fix closing a unix datagram socket removing the peer's socket file . Fix process pipes never being closed . Fix Lock::lockwait() truncating the timeout . Fix process pool reload stalling, getProcess() ids and a connection leak . Fix process pool warnings about workers that already exited or detached . Fix the signal listener count with wait_signal . Fix a second CoroutineSystem::waitSignal() on the same signal leaving the first waiting forever . Fix Coroutine::select() with push channels and array keys . Fix Table keys longer than 63 bytes, iteration with an empty key, and incr()/decr() on a bad column . Fix the Table row lock being taken over from a live holder . Fix an HTTP/2 RST_STREAM leaving a send_yield coroutine waiting forever . Fix the open_redis_protocol parser failing on commands split across reads and on pipelined commands . Fix hooked time_nanosleep() accepting nanoseconds out of range . Fix a crash in the native curl hook with curl_copy_handle() or connection reuse in curl_multi . Fix curl_reset() losing the coroutine state of a native curl handle . Fix co::run() not returning for minutes after curl_multi requests in the native curl hook . Fix io_uring warnings logged on every file operation when io_uring is not available, for example in Docker containers with the default seccomp profile . Fix the server master process being killed by SIGALRM when a timer was created before Server::start() . Fix the static handler sending the file body for HEAD requests . Fix the HTTP/2 client reply to PING frames and its handling of GOAWAY and padded frames . Fix CurlHandle objects never being freed with CURLOPT_HEADERFUNCTION in the native curl hook on PHP 8.4+ (#391) . Fix HTTP/2 server responses to HEAD requests sending a body . Fix bundled hiredis symbols colliding with other extensions that link hiredis (#394) . Fix the build on FreeBSD 14 and 15 (#389) . Fix OpenSwooleTable ignoring a conflictProportion below 1 (#362) . Fix the io_uring reactor failing to start when io_uring is not available; it now falls back to epoll, and reactor_type is accepted by Server::set() (#408) . Fix HTTP/2 requests with headers split into CONTINUATION frames, and HPACK errors when http2_header_table_size is set (#388) . Fix heap corruption when closing a mysqli connection opened with mysqli_init() and real_connect() in a coroutine (#409, #378) . Fix max_request_execution_time ending later requests early and crashing workers (#315, #358) . Fix coroutines crashing when opcache.preload is enabled (#343) . Fix the deprecation warning for on('handshake') (#303) . Fix configure not finding libpq in lib64 without pg_config (#245) . Fix task workers logging a warning for SIGPIPE . Fix Xdebug not seeing the request callback with use_fiber_context, which crashed the worker when variables were inspected (#404) . Fix the io_uring reactor not answering requests in SWOOLE_PROCESS mode (#405) . Fix the io_uring reactor on kernels before 5.13, where multishot poll is not available . Various stability fixes
  • swoole 6.1.13
    - Fixed file descriptor leak caused by coroutine socket descriptors not being released when closed. - Fixed stale HTTP parse offset remaining in recv_with_length_protocol. - Fixed the segmentation fault caused by passing an associative array to the taskWaitMulti method. - Fixed the issue where sub-threads incorrectly cleared the main thread's signal handlers upon exiting. - Fixed mysqlnd failing to recognize hooked Unix socket connections. - Fixed the initial connection window value for HTTP/2, changing it to the standard 65535. - Fixed worker busy loop caused by unhandled EPOLLERR on c-ares DNS sockets. - Fixed missing validation for HTTP/2 GOAWAY frames with insufficient length. - Fixed incorrect connection limit boundary calculation in BASE mode. - Fixed coroutine timeout array allocated by byte count instead of element count. - Fixed active ID not being restored after a timer callback throws an exception. - Fixed security risk of unpacking task packet metadata without validation. - Fixed residual files not being cleaned up after a task file write failure. - Fixed missing length boundary limit for TLS wildcard domain name comparison. - Fixed unbounded memory allocation risk during URL encoding. - Fixed HTTP client failing to reject truncated responses at EOF. - Fixed dangling pointer caused by not detaching the global timer before freeing it.
  • swoole 6.2.6
    - Fixed file descriptor leak caused by coroutine socket descriptors not being released when closed. - Fixed stale HTTP parse offset remaining in recv_with_length_protocol. - Fixed the segmentation fault caused by passing an associative array to the taskWaitMulti method. - Fixed the issue where sub-threads incorrectly cleared the main thread's signal handlers upon exiting. - Fixed mysqlnd failing to recognize hooked Unix socket connections. - Fixed the initial connection window value for HTTP/2, changing it to the standard 65535. - Fixed worker busy loop caused by unhandled EPOLLERR on c-ares DNS sockets. - Fixed missing validation for HTTP/2 GOAWAY frames with insufficient length. - Fixed incorrect connection limit boundary calculation in BASE mode. - Fixed coroutine timeout array allocated by byte count instead of element count. - Fixed active ID not being restored after a timer callback throws an exception. - Fixed security risk of unpacking task packet metadata without validation. - Fixed residual files not being cleaned up after a task file write failure. - Fixed missing length boundary limit for TLS wildcard domain name comparison. - Fixed unbounded memory allocation risk during URL encoding. - Fixed HTTP client failing to reject truncated responses at EOF. - Fixed dangling pointer caused by not detaching the global timer before freeing it.
  • ssh2 1.6.1
    - Allow building with libssh2 above 1.9.0. But with libssh2 below 1.11.0 ssh2_send_signal() method will not be avaiable.
tagged:

Link:


Trending Topics: