History log of /PHP-8.3/sapi/fpm/tests/tester.inc (Results 1 – 25 of 51)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9b1d2e93 30-Mar-2024 Jakub Zelenka

Fix FPM tester default env vars change

This broke cloexec test


# d0a8d41e 22-Mar-2024 Jakub Zelenka

Fix GH-13563: Setting bool values via env in FPM config fails

Closes GH-13786


# a19267d4 08-Feb-2024 Jakub Zelenka

Fix GH-11086: FPM: config test runs twice in daemonised mode

The previous check for STDERR did not work so this fixes it.

Closes GH-13357


# 62682cbd 08-Dec-2023 Jakub Zelenka

Add FPM tester logs printing for all errors

Closes GH-12902


# d02a8f4e 09-Nov-2023 Jakub Zelenka

Separate setting of SO_KEEPALIVE in FPM tests

Closes GH-12640


# e3d1beb0 08-Oct-2023 Jakub Zelenka

Fix bug #76922: FastCGI terminates conn after FCGI_GET_VALUES

Closes GH-12387


# 0217be4d 22-Sep-2023 Jakub Zelenka

Fix GH-12232: FPM: segfault dynamically loading extension without opcache

Also fixes incorrect assertion in ini init that php_dl is always
temporary.

Closes GH-12277


# fe30c509 30-Aug-2023 Jakub Zelenka

Fix GH-12077: Check lsof functionality in socket on close test

Closes GH-12084


# 99a222cd 26-Aug-2023 Jakub Zelenka

FPM tester FastCGI client transport (#11764)

This improves FastCGI client by separating transport functions and adding support for more low level socket transport that is useful for debuggin

FPM tester FastCGI client transport (#11764)

This improves FastCGI client by separating transport functions and adding support for more low level socket transport that is useful for debugging in some cases.

In addition to that it introduces an option for delaying of fcgi request writing.

show more ...


# 418cdc0b 14-Jul-2023 Mikhail Galanin

Set CLOEXEC on listened/accepted sockets in the FPM children

Closes GH-11708

Co-authored-by: Jakub Zelenka <bukka@php.net>


# 08b57772 12-Apr-2023 Joshua Behrens

Warn when fpm socket was not registered on the expected path

This might happen if the UDS length limit is exceeded.

Co-authored-by: Jakub Zelenka <bukka@php.net>

Closes GH-

Warn when fpm socket was not registered on the expected path

This might happen if the UDS length limit is exceeded.

Co-authored-by: Jakub Zelenka <bukka@php.net>

Closes GH-11066

show more ...


# ea2ee605 05-Jun-2023 Tim Starling

When running FPM tests, pass -n option to php-fpm

"make test" was failing for me, because I was running it prior to
install, and there was an old installed version which was incompatible

When running FPM tests, pass -n option to php-fpm

"make test" was failing for me, because I was running it prior to
install, and there was an old installed version which was incompatible.
The FPM tests were using the installed php.ini which referenced
installed dynamically linked extensions.

So, pass -n to php-fpm.

FPM\Tester::start() has $extensions, $iniEntries and
TEST_FPM_EXTENSION_DIR but they are not actually set by anything. Rather
than rely on the installed php.ini to be correct, it seems safer to pass
-n, and any tests that need specific config can pass $iniEntries.

Closes GH-11373

show more ...


# 5e64ead6 10-Apr-2023 Jakub Zelenka

Fix bug #64539: FPM status - query_string not properly JSON encoded

Closes GH-11050


# 7d987ebb 17-Mar-2023 Jakub Zelenka

Fix FPM tester $scriptName logic


# 3125155b 12-Mar-2023 Jakub Zelenka

Add extra option to FPM tester for handling script filename


# 716de0cf 19-Jan-2023 Jakub Zelenka

Introduce max_multipart_body_parts INI

This fixes GHSA-54hq-v5wp-fqgv DOS vulnerabality by limitting number of
parsed multipart body parts as currently all parts were always parsed.


# 21d8980d 23-Dec-2022 Jakub Zelenka

Fix bug #68591: Configuration test does not perform UID lookups

Addition check in fpm config test to verify existence of user, group,
listen.owner and listen.group.

Closes GH-10

Fix bug #68591: Configuration test does not perform UID lookups

Addition check in fpm config test to verify existence of user, group,
listen.owner and listen.group.

Closes GH-10165

show more ...


# 94702c56 21-Nov-2022 Jakub Zelenka

Fix bug #80669: FPM numeric user fails to set groups


# 5a4520bc 21-Nov-2022 Jakub Zelenka

Fix bug #68207: Setting fastcgi.error_header can result in a WARNING


# db2d32f4 30-Oct-2022 Jakub Zelenka

Introduce TEST_FPM_EXTENSION_DIR for FPM tests with shared extensions


# 1c5844aa 29-Oct-2022 Jakub Zelenka

Fix GH-9754: SaltStack hangs when running php-fpm 8.1.11

SaltStack uses Python subprocess and redirects stderr to stdout which is
then piped to the returned output. If php-fpm starts in

Fix GH-9754: SaltStack hangs when running php-fpm 8.1.11

SaltStack uses Python subprocess and redirects stderr to stdout which is
then piped to the returned output. If php-fpm starts in daemonized mode,
it should close stderr. However a fix introduced in GH-8913 keeps stderr
around so it can be later restored. That causes the issue reported in
GH-9754. The solution is to keep stderr around only when php-fpm runs in
foreground as the issue is most likely visible only there. Basically
there is no need to restore stderr when php-fpm is daemonized.

show more ...


# 1e8fa660 04-Sep-2022 Jakub Zelenka

Rework FPM tests logging for better debugging


Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23
# e3034dba 29-Aug-2022 Jakub Zelenka

Fix FPM tester conflict


Revision tags: php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1, php-8.0.21, php-8.1.8, php-8.2.0alpha3
# 3503b1da 26-Jun-2022 Jakub Zelenka

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

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.

show more ...


# f92505cf 03-Jul-2022 Dmitry Menshikov

Fix GH-8885: access.log with stderr writes logs to error_log after reload

This fix allows restoring the the original stderr so the logs are
correctly written.


123