[php-src] Issue #23425: sapi_cli_server_send_headers does not check return value of php_cli_server_client_send_through

[email protected] (Sjord)
Newsgroups php.bugs
Message-ID <0zKyBfGUuJcyPE3LqN8Mk9lmKBTteeod7tV3hp9vTPM@main.internal.php.net>
Issue: https://github.com/php/php-src/issues/23425
Author: Sjord

### Description

php_cli_server_client_send_through can fail without bailing out, if ignore_user_abort=1. sapi_cli_server_send_headers then fails, but it returns SAPI_HEADER_SENT_SUCCESSFULLY.

In sapi/cli/php_cli_server.c:

```
	php_cli_server_client_send_through(client, ZSTR_VAL(buffer.s), ZSTR_LEN(buffer.s));

	smart_str_free(&buffer);
	return SAPI_HEADER_SENT_SUCCESSFULLY;
}
```

### PHP Version

```plain
master
```

### Operating System

_No response_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.