[GIT-PULLS] [php-src] PR #23428: sapi/cli: check php_cli_server_client_send_through() return value
[email protected] (lazerg)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <FZvC9FMVSlzh89pUrNZ8D1UhkQHSHjWaa4LBw37kjC4@main.internal.php.net> |
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