Login  |  Packages  |  Support  |  Bugs
PECL is deprecated.

Have you heard about PIE? 🥧 PHP Installer for Extensions (PIE) is the replacement for PECL. We recommend publishing your extension using PIE instead.

Find out more at https://github.com/php/pie.

Top Level :: Event :: swoole :: 6.3.0 :: Windows

swoole 6.3.0 for Windows

Package Information
Summary Event-driven asynchronous and concurrent networking engine with high performance for PHP.
Maintainers Han Tianfeng < rango at swoole dot com > (lead) [details]
Bruce Dou < doubaokun at php dot net > (developer) [details]
Lufei < lufei at php dot net > (developer) [details]
License Apache2.0
Description Event-driven asynchronous and concurrent networking engine with high performance for PHP.
- event-driven
- coroutine
- asynchronous non-blocking
- multi-thread reactor
- multi-process worker
- multi-protocol
- millisecond timer
- built-in tcp/http/websocket/http2 server
- coroutine tcp/http/websocket client
- coroutine read/write file system
- coroutine dns lookup
- support IPv4/IPv6/UnixSocket/TCP/UDP
- support SSL/TLS encrypted transmission
Homepage https://github.com/swoole/swoole-src
Release notes
Version 6.3.0
(stable)
- Native Windows support: Core capabilities such as the event loop, coroutines, Runtime Hook, and IOCP networking have officially landed on the Windows platform, and supplemented with cryptographic random byte source, WebSocket frame class registration, and nghttp2 support under static PHP.
- The native Windows environment adopts a multi-threading model. The following classic asynchronous modules and process management mechanisms are currently not supported: Classic asynchronous Server (including Swoole\Server, Swoole\Http\Server, Swoole\WebSocket\Server, and Swoole\Redis\Server); Process and task modules (including task / process worker mechanisms and the Swoole\Process module). When developing server-side applications on the Windows platform, please fully switch to the Swoole\Coroutine\Http\Server architecture combined with coroutine clients to ensure normal service operation and cross-platform compatibility.
- Thread mode supports internal function entry points and serialized return values, and enables coroutine preemption during thread construction.
- Swoole\Coroutine::cancel adds a third parameter, working with the newly added Swoole\Coroutine\CanceledException::getReason() method, allowing the canceled party to explicitly obtain the "reason for cancellation", providing complete context information for resource cleanup and exception logs.
- Coroutine Socket adds an export() method, supporting the duplication of socket file descriptors.
- Added Swoole\SendFile class: Introduced an object specifically describing a "file to be sent". Swoole\Http\Response::sendfile() and Swoole\Server::sendfile() now support receiving this object, and added a delete_file parameter. For business scenarios like "generating a temporary report first and then sending it", enabling this parameter will automatically delete the file when the transmission is completed, without needing business code to manually execute unlink, greatly simplifying file lifecycle management.
- HTTP client supports streaming raw request body uploads from PHP resource streams, avoiding reading entire blocks into memory.
- HTTP/2 stream reset cancels request coroutine: Added server option http2_cancel_on_stream_reset (disabled by default, requires enable_coroutine). When enabled, if the peer sends an RST_STREAM to reset a stream, the request coroutine currently being processed will receive a Swoole\Coroutine\CanceledException, whose reason is an array containing session_id, stream_id, HTTP/2 error code and message (HTTP2 Stream Reset); if a reset is received while the request is still queuing, the callback is skipped directly. Please catch this exception in the request handler; uncaught exceptions will cause the worker process to exit.
- HTTP/2 client Response::$trailers exposes trailing HEADERS frames.
- Supports HTTP QUERY method.
- Coroutine HTTP server supports sending 100 Continue responses.
- SSH2 adds ssh2_set_timeout(), ssh2_keepalive_config(), ssh2_keepalive_send(), ssh2_send_signal().
- Swoole\Table supplemented with five atomic methods: add, update, cmpset, cmpdel, getdel, further improving the atomicity and safety of data operations in concurrent scenarios.
- Swoole\Server now supports configuring service_name and name_resolver (and configuring service_address, service_port, service_heartbeat_interval as needed), allowing the framework to automatically take over service registration, periodic heartbeat keep-alive, re-registration after Worker restarts, and service deregistration during graceful exit. Registration status is strictly isolated per Worker, completely solving the problem of leaving dirty registration information after Worker crashes and restarts.
- Fixed HPACK decoding not terminating at the end of response headers, CONTINUATION frames and padding handling errors.
- Fixed missing frame length validation: Rejecting overly short GOAWAY, incorrect length PING, illegal fixed-length frames, and preventing HTTP2-Bomb style resource amplification attacks.
- Connection-level flow control window corrected to start from 65535, response writing adds flow control and send deadline constraints, maintaining flow control processing during GOAWAY draining.
- Fixed coroutine server multi-stream concurrent writes blocking each other, and the receive loop stopping reading while waiting for writes. Stream writes changed to round-robin scheduling.
- Fixed write stalls after stream termination, worker exiting when control frames encounter full buffers, and crashes when releasing incomplete responses.
- Request body exceeding limits now only resets the corresponding stream instead of disconnecting the entire connection; fixed connection reuse failure after resetting oversized requests.
- Fixed send failures while waiting for another write, and connections not closing after write failures.
- Fixed mutual pollution between request trailers and request body completion status, duplicate :path header leakage, and premature setting of Content-Type.
- Fixed explicit Content-Length being overwritten by compression logic, sendfile responses not being sent in chunked streaming mode, and sessions not being properly cleaned up after fatal requests.
- Fixed parsing errors caused by HTTP/1 Optional White Space (OWS) and trailing whitespace in chunked encoding.
- Fixed inaccurate chunked request parsing in coroutine server, non-growing buffers, and failure to re-parse when request lines are incomplete.
- Fixed request body boundary and 100 Continue handling; HTTP/1.0 requests no longer incorrectly send 100-continue; rejecting illegal requests without headers in the header block.
- Fixed loss of request fields between multiple parses, corruption of response header values, and incorrect completion status for HTTP/1 trailers.
- Fixed a series of security issues with static file responses; Date header uniformly outputs GMT.
- Fixed truncated or prematurely released upload file paths, multipart temporary file errors, and loss of overly long temporary directory paths.
- Fixed deflate responses using raw format, package length limit underflow, and failure to reject oversized Upgrade values.
- WebSocket: Fixed frame dispatch before handshake response is sent, unmasking errors for compressed frames, compression extension negotiation failures, and lack of limits on decompressed messages exceeding package_max_length.
- WebSocket: Fixed double-free and UAF caused by closing connections in BASE mode callbacks, compressed control frames violating RFC 6455, and timed recv incorrectly closing connections during concurrent pushes under Windows IOCP.
- Fixed HTTP client not rejecting truncated responses at EOF, and failure to detect corrupted or incomplete compressed responses.
- Fixed loss of multipart fields and uploads after HTTP client retries, truncation due to multipart header growth, and loss of request headers during multipart uploads.
- Fixed loss of retry targets due to HTTP client download status cleanup, connection close status crosstalk between requests, and duplicate close overwriting request errors.
- Fixed HTTP client not consuming 1xx informational responses first, modification of shared arrays without separation, and failure to reject unsupported request Transfer-Encoding.
- Fixed boundary handling for fragmented HTTP proxy responses and SOCKS5 responses, and rejection of unsuccessful WebSocket upgrades.
- Fixed write_func receiving uncompressed response bodies and socket initialization errors in coroutine clients.
- Hook streams and server TLS now validate peer certificates and hostnames consistently with ext/openssl.
- Fixed missing timeout application in hook stream writes, loss of read timeout errors, and incorrect handling of cancellation after partial writes and partial progress.
- Fixed inconsistent behavior of zero-timeout streams compared to native, blocking even when buffer data exists, and ineffective error suppression operators.
- Fixed socket-type standard streams not being hooked, mysqlnd failing to recognize hooked Unix sockets, and null bytes in IP addresses not being rejected.
- Fixed exit/exceptions not correctly propagating to ZendVM, loss of coroutine exceptions in SPL directory iteration, and missing call frames in Fiber observers.
- Fixed socket mappings being cleaned up before fd release, accept not using the caller's address buffer, and excessive sending in ssl_sendfile.
- Fixed precision and cleanup issues in Coroutine::setTimeLimit(); passing 0 now clears the time limit.
- Fixed external interrupts being responded to even when preemption is disabled, crashes when starting PHP requests in non-Swoole created threads, and uninitialized global variables under thread SAPI.
- Fixed the scheduler discarding queued tasks after coroutine creation failure and delayed recovery touching finished EventWaiter instances.
- Fixed worker lifecycle and shutdown order: Unreleased reactors for workers exiting on fatal errors, out-of-order reload progress, lost reload wake-ups, and uncancelled shutdown timers.
- Fixed loss of task results after async worker replacement, inconsistent result contracts in taskCo/taskWaitMulti, and non-atomic sharing of task IDs across workers/threads.
- Fixed rejection of incomplete task serialization and illegal task reply sources; force-kill alarms changed to synchronous processing.
- Fixed cpu_affinity_ignore handling and CPU affinity ID validation; configured affinity correctly applied to workers.
- Fixed failure to restore caller worker after BASE server stop, delayed execution of nested close/buffer callbacks, and unvalidated session_id.
- Fixed failure to parse buffered packets after resuming paused connections and duplicate delivery caused by onPackage pausing EOF protocol connections.
- Fixed SSL context initialization, get_port matching for SSL ports, and return value handling of Port::set().
- Supports receiving bound datagram sockets passed by systemd; fixed missing FIN transmission after peer shutdown on macOS.
- Fixed ineffective signal handling after Pool::start() and event loop restarts, and signals arriving during signal callback execution being discarded.
- Fixed original signal actions not being restored after removing listeners, and forked child processes inheriting listener states and manager handlers.
- Fixed lost signal masks during background thread startup, other thread exits destroying the main thread's signal handler, and workers executing manager-exclusive handlers.
- Fixed segmentation faults when calling Process::signal() in the manager process under thread-context, and SIGCHLD not being registered to the reactor thread.
- Fixed unreleased master system timers after Pool::start() and non-dispatching synchronous worker timers.
- Fixed resource release when reusing MessageBus across starts and during owner shutdown, listener ownership, and partial startup cleanup.
- Fixed truncated streaming packets and packet boundary validation; rejected message queue keys exceeding key_t range and oversized worker_num.
- Fixed io_uring SSL socket error handling, recording SSL_ERROR_ZERO_RETURN correctly as connection reset.
- Fixed confusion between active cancellation and timeouts in io_uring, unreserved linked timeout submissions, and undrained requests after external wake-ups.
- Fixed empty UDP datagrams, splice event reuse, and ineffective sendfile byte ranges in io_uring.
- Fixed detection errors for io_uring kernel major versions greater than 6, relaxed liburing minor version compatibility, and added runtime validation.
- Fixed Windows IOCP completion errors and stale ready dispatches; drained IOCP operations before PHP close returns.
- Fixed unvalidated offsets and file sizes for sendfile, and connections not closing when queued sendfile failed to start or complete.
- Fixed fragmented packet reception failures under custom package_length_func and continued reading after closing connections in callbacks.
- Fixed out-of-bounds receipt of length protocol headers, signed overflow in default_length_func, and copying of EOF delimiters without validation.
- Fixed half-packet loss after receive timeouts, partial set configurations overwriting package length limits, and loss of source address in empty datagram recvfrom.
- Fixed protocol level errors in socket options and uninitialized buffers for short replies; fixed connections not closing after unrecoverable send errors.
- Fixed TCP listening port rebinding, UNIX datagram address ownership, and cleanup of pending close connections and UNIX paths.
- Fixed swoole_client_select() pollfd array size, unreleased references after async client callbacks, and unchecked socket states before pooling.
- PDO PgSQL: Enforced connect_timeout, fixed query wait cancellations, failure to try the next host after blocking connection timeouts, and out-of-bounds reads on empty error messages.
- PDO ODBC: Moved SQLCloseCursor/SQLFreeHandle/SQLParamData/SQLDescribeParam to the AIO thread pool for execution; fixed empty credential lengths in connection pools.
- PDO Oracle: Fixed additional server hooks during connection and safety of repeated statement execution.
- Fixed PDO::connect() subclass mapping and optional PDO dependency builds.
- Redis Server: Fixed re-parsing of sharded requests, receive buffer handling, RESP numeric and bulk length boundary validation, and request cleanup.
- Synced released PHP 8.4 curl fixes (handle copying, response buffering, etc.), retaining native handle lifecycle handlers.
- Fixed lifecycle of queued cURL resumptions, PHP stream callbacks running on wrong threads, and lost readiness states in multi select.
- Switched to VNet AFD_POLL API for curl native hook on Windows.
- Fixed SSH2 resource release lifecycle and ownership, exec completion metadata, and shell exit status waiting.
- Fixed SCP reception not stopping on early EOF, mishandling of # and ? in SFTP wrapper paths, and unrefreshed poll directions after EAGAIN in SSH2.
- Fixed integer overflow in ssh2_set_timeout() and hardened SSH2 API parameter handling.
- Fixed worker busy loops caused by c-ares socket EPOLLERR and socket callback type errors.
- Randomized the starting point of DNS request IDs and incremented them sequentially; only accepts responses from DNS servers; fixed resolver address truncation.
- Fixed reentrant counting and unlock owner validation in coroutine locks; fixed erroneous release of row locks held by live owners after force-unlock timeouts.
- Fixed Atomic futex timeout and non-zero value behavior, and lost wakeups after interrupting waits.
- Fixed reentrant parameter conversion issues in Table and constructors.
- Fixed rejection of overflowing timer deadlines, unremoved global timers before release, and cleanup of PHP timers during the RSHUTDOWN phase.
- Fixed Windows timer interval validation.
- Fixed parameter leaks on thread startup failure, stdio file descriptor leaks, overwritten thread scheduling policies, and inability to start without explicitly calling set().
- Fixed cookie loss and padding response frame handling in the FastCGI client.
- Fixed function aliases losing variadic arguments, and logger/static file handlers using non-reentrant localtime/gmtime.
- Fixed Android mkostemp missing O_CLOEXEC, out-of-tree builds, and trigraph escapes in generated headers.
- Fixed numeric identifier validation and unauthorized access to reactor thread information in the Admin API.
- Breaking change: Removed stdext module. Strong-typed arrays, basic type methods, and other PHP language extensions are no longer built into Swoole. These capabilities are now implemented independently by the typephp project; code relying on these features requires migration.
- Breaking change: HTTP client response header names are uniformly lowercase. The keys in the $headers array of Swoole\Coroutine\Http\Client are now always converted to lowercase (e.g., Content-Type becomes content-type). Code reading response headers by original case needs adjustment.
 
DLL List
PHP 8.5 8.5 Non Thread Safe (NTS) x64
8.5 Thread Safe (TS) x64
PHP 8.4 8.4 Non Thread Safe (NTS) x64
8.4 Thread Safe (TS) x64
PHP 8.3 8.3 Non Thread Safe (NTS) x64
8.3 Thread Safe (TS) x64
PHP 8.2 8.2 Non Thread Safe (NTS) x64
8.2 Thread Safe (TS) x64

In case of missing DLLs, consider to contact the Windows Internals List (subscribe first).


[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ] [ View Documentation ]

Dependencies for release 6.3.0
PHP Version: PHP version 8.5.99 or older
PHP Version: PHP 8.2.0 or newer
PEAR Package: PEAR 1.4.0 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 13:08:36 2026 UTC
Bandwidth and hardware provided by: pair Networks