php-src/sapi
Jakub Zelenka 3503b1daa2
Fix bug #77780: "Headers already sent" when previous connection was aborted
This change primarily splits SAPI deactivation to module and destroy
parts. The reason is that currently some SAPIs might bail out
on deactivation. One of those SAPI is PHP-FPM that can bail out on
request end if for example the connection is closed by the client
(web sever). The problem is that in such case the resources are not
freed and some values reset. The most visible impact can have not
resetting the PG(headers_sent) which can cause erorrs in the next
request. One such issue is described in #77780 bug which this fixes
and is also cover by a test in this commit. It seems reasonable
to separate deactivation and destroying of the resource which means
that the bail out will not impact it.
2022-08-29 22:25:53 +01:00
..
apache2handler Fix UNKNOWN default value of apache_note() 2020-09-19 16:22:18 +02:00
cgi Merge branch 'PHP-7.4' into PHP-8.0 2021-10-14 12:21:35 +02:00
cli Prevent potential buffer overflow for large value of php_cli_server_workers_max 2022-07-14 12:12:25 +01:00
embed Add stubs for SAPIs 2020-07-10 14:20:18 +02:00
fpm Fix bug #77780: "Headers already sent" when previous connection was aborted 2022-08-29 22:25:53 +01:00
fuzzer Add additional entries to unserialize corpus 2020-11-30 14:32:07 +01:00
litespeed Merge branch 'PHP-7.4' into PHP-8.0 2021-03-05 11:00:53 -05:00
phpdbg Fix the crypt sha apis build (with recent clang versions). 2022-07-01 05:33:12 +01:00