Jakub Zelenka
da9e9d0004
Merge branch 'PHP-8.1' into PHP-8.2
2022-09-29 15:31:23 +01:00
Jakub Zelenka
6d005c2cec
Merge branch 'PHP-8.0' into PHP-8.1
2022-09-29 15:30:27 +01:00
Jakub Zelenka
8e1cef4341
Do not check X-Powered-By header in FPM tester if expose_php off
...
Closes GH-9508
2022-09-29 15:27:33 +01:00
Jakub Zelenka
1ed4303957
Improve CS in FPM Tester Response
2022-09-29 15:24:00 +01:00
Jakub Zelenka
f41eb54a5e
Merge branch 'PHP-8.1' into PHP-8.2
2022-09-27 17:33:58 +01:00
Jakub Zelenka
54cb2cdcd3
Merge branch 'PHP-8.0' into PHP-8.1
2022-09-27 17:31:08 +01:00
Jakub Zelenka
1e8fa6607d
Rework FPM tests logging for better debugging
2022-09-27 17:27:43 +01:00
Jakub Zelenka
e3034dba3e
Fix FPM tester conflict
2022-08-29 22:45:04 +01:00
Jakub Zelenka
f3c357c446
Merge branch 'PHP-8.1'
2022-08-29 22:34:48 +01:00
Jakub Zelenka
bf97b3649d
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-29 22:33:02 +01:00
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
Jakub Zelenka
15bca2956b
Merge branch 'PHP-8.1'
2022-08-29 16:43:26 +01:00
Jakub Zelenka
7dc3d4b510
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-29 16:42:58 +01:00
Jakub Zelenka
986e7319c5
Re-add fixed tests for GH-8885
2022-08-29 16:42:10 +01:00
Jakub Zelenka
36063873b0
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-29 16:41:19 +01:00
Jakub Zelenka
bcdd9877e1
Fix GH-8885 tests on MacOS
2022-08-29 16:40:31 +01:00
Jakub Zelenka
869ccf17f6
Merge branch 'PHP-8.1'
2022-08-29 14:41:55 +01:00
Jakub Zelenka
be45f540ee
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-29 14:40:57 +01:00
Dmitry Menshikov
f92505cf24
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.
2022-08-29 14:39:24 +01:00
Mark Gallagher
327bb21986
FPM: Implement access log filtering
...
Adds a setting "access.suppress_path" to php-fpm pool configurations
which causes successful GET requests to the specified URIs to be
excluded from the access log. This is to reduce noise caused by
automated health checks.
Requests with response codes outwith the successful range 200 - 299,
requests made with query parameters and requests which have a
Content-Length other than 0 will ignore this setting as a security
precaution.
Closes GH-8174, #80428 [1]
[1] https://bugs.php.net/bug.php?id=80428
2022-07-10 23:21:14 +01:00
David CARLIER
5174ee2353
FPM add routing view global option (for FreeBSD for now).
...
set the route table FIB id to the sockets created within FPM up to
the max set by the system, avoiding having to use setfib command line.
Closes #8470 .
2022-07-08 06:37:47 +01:00
Jakub Zelenka
9149d165ee
Merge branch 'PHP-8.1'
2022-05-10 21:40:44 +01:00
Jakub Zelenka
82eea0efc9
Merge branch 'PHP-8.0' into PHP-8.1
2022-05-10 21:39:31 +01:00
Jakub Zelenka
23a2030438
Fix bug #72185 : php-fpm writes empty fcgi record causing nginx 502
...
This issue might happen if there is change of the fcgi stream when
the buffer is full. Then the empty record is created which signals
end of stream which is incorrect.
The actual fix without a test was contributed by GitHub user @loveharmful
in GH-3198.
2022-05-10 21:36:55 +01:00
Jakub Zelenka
09d313daac
Merge branch 'PHP-8.1'
2022-04-27 19:17:33 +01:00
Jakub Zelenka
21d551ad0f
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-27 19:14:47 +01:00
Jakub Zelenka
0df28869f6
Add skip for FPM resource heavy tests
2022-04-27 19:11:47 +01:00
Jakub Zelenka
436cffc971
Merge branch 'PHP-8.1'
2022-04-22 23:08:23 +01:00
Jakub Zelenka
abd56aeb9a
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-22 23:07:01 +01:00
Jakub Zelenka
d8612fb6b7
Fix bug #77023 : FPM cannot shutdown processes
...
This change introduces subsequent kill of the process when idle process quit
(SIGQUIT) does not succeed. It can happen in some situations and means that FPM
is not able to scale down in dynamic pm. Using SIGKILL fixes the issue.
2022-04-22 20:51:02 +01:00
David Carlier
2874e5fa05
FPM: Emit error for invalid port setting
2022-04-03 21:24:46 +01:00
Stefano Arlandini
46bec6de42
Fix the OpenMetrics response format returned by the FPM status page
...
Closes GH-7843, closes GH-7842
2022-01-04 23:01:10 +00:00
Jakub Zelenka
a529d0dd15
Merge branch 'PHP-8.0' into PHP-8.1
2021-11-27 22:39:51 +00:00
Jakub Zelenka
81513e6285
Add skip for FPM process idle flaky test
2021-11-27 22:37:43 +00:00
Jakub Zelenka
435a5aca89
Add FPM test for php_admin_value doc_root usage
...
Closes GH-7673.
2021-11-23 18:36:04 +01:00
Jakub Zelenka
79f0e486fd
Merge branch 'PHP-8.0' into PHP-8.1
2021-11-20 20:44:02 +00:00
Jakub Zelenka
2f8407f185
Increase read timeout in FPM process idle test
2021-11-20 20:42:19 +00:00
Jakub Zelenka
fc67967190
Increase script sleep in FPM process idle test
2021-11-20 20:42:19 +00:00
Jakub Zelenka
48bc4ea758
Merge branch 'PHP-8.0' into PHP-8.1
2021-11-14 20:14:22 +00:00
Jakub Zelenka
ec3d4409a4
Merge branch 'PHP-7.4' into PHP-8.0
2021-11-14 20:10:42 +00:00
Jakub Zelenka
b2cf9b7ec7
Fix bug #81513 (Future possibility for heap overflow in FPM zlog)
...
This fixes currently unused code path in zlog that could lead to
the heap overflow in the future.
2021-11-14 20:08:57 +00:00
Nikita Popov
cd84480e54
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Disable failing FPM test
2021-10-04 23:31:40 +02:00
Nikita Popov
a00d933242
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Disable failing FPM test
2021-10-04 23:31:31 +02:00
Nikita Popov
4c01bd2ade
Disable failing FPM test
...
Test fails intermittently, e.g.:
https://dev.azure.com/phpazuredevops/PHP/_build/results?buildId=20597&view=ms.vss-test-web.build-test-results-tab&runId=475324&resultId=115501&paneView=debug
Possibly this is because the two requests end up being processed
in sequence and no second process is spawned.
2021-10-04 23:30:14 +02:00
Jakub Zelenka
7dd87b2343
Merge branch 'PHP-8.0' into PHP-8.1
2021-10-04 21:56:06 +01:00
Jakub Zelenka
9ed95846a3
Merge branch 'PHP-7.4' into PHP-8.0
2021-10-04 21:55:21 +01:00
Jakub Zelenka
66a655fdf4
Add the actual test for FPM prod idle timeout test with 6s sleep
2021-10-04 21:54:32 +01:00
Jakub Zelenka
2cd69115d5
Merge branch 'PHP-7.4' into PHP-8.0
2021-10-04 21:53:34 +01:00
Jakub Zelenka
edfb347019
Add FPM prod idle timeout test with 6s sleep
2021-10-04 21:50:57 +01:00
Nikita Popov
0431bd3137
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Revert "Add FPM prod idle timeout test"
[ci skip] Fix missing NEWS
[ci skip] Add missing NEWS
2021-10-04 10:17:07 +02:00