[GIT-PULLS] [php-src] PR #22802: Add OpenSSL TLS 1.3 early data (0-RTT) support

[email protected] (bukka) Sun, 19 Jul 2026 12:32:27 +0000
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/22802
Author: bukka

This builds on the session resumption support to let clients send and servers accept TLS 1.3 early data through the stream SSL context.

Clients set the early_data context option (a string) to send 0-RTT data, which is only sent when the resumed session allows it. Servers enable acceptance with `max_early_data` and receive the data through the `early_data_cb` callback, so nothing is buffered on the stream. The outcome is reported as `accepted`, `rejected` or `not_sent` in the early_data key of the crypto stream_get_meta_data() array.

Enabling early data also shares the server SSL_CTX across accepted connections and keeps the session cache on, both of which 0-RTT resumption requires.