[php-src] PR #23428: sapi/cli: check php_cli_server_client_send_through() return value
| From: | lazerg | Date: | Sun, 23 Aug 2026 20:55:50 +0000 |
| Subject: | [php-src] PR #23428: sapi/cli: check php_cli_server_client_send_through() return value | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38094@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23428
Author: lazerg
sapi_cli_server_send_headers() sends the header buffer through php_cli_server_client_send_through()
but drops the return value, so it always reports SAPI_HEADER_SENT_SUCCESSFULLY, even when the send
fails and php_handle_aborted_connection() doesn't bail out (ignore_user_abort=1). This compares
the send result against the buffer length and returns SAPI_HEADER_SEND_FAILED when it comes up
short.
Fixes #23425