Jakub Zelenka
caaa79cf72
Merge branch 'PHP-8.2'
2022-09-29 15:32:41 +01:00
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
Ilija Tovilo
138fd5b3c8
Replace reallocarray with safe_perealloc
...
Fixes GH-9581
2022-09-29 15:15:40 +02:00
Jakub Zelenka
d6306e7600
Merge branch 'PHP-8.2'
2022-09-27 17:34:32 +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
Ilija Tovilo
b61c81c949
Replace reallocarray with safe_perealloc ( #9593 )
2022-09-22 14:55:41 +02:00
Nikita Popov
5f0cbcff3a
Don't set rpath for fuzzers
...
We used to use the rpath for loading libonig, but this is both no
longer needed and breaks under SystemSan.
2022-09-17 15:44:58 +02:00
Ilija Tovilo
481a7eb2d4
Improve flaky php-cli server test
2022-09-14 22:56:13 +02:00
Ilija Tovilo
5cb9e72feb
Fix pdeathsig test on FreeBSD
...
For FreeBSD a small usleep is required to make sure the processes have
time to terminate.
Closes GH-9506
2022-09-08 16:07:06 +02:00
Ilija Tovilo
ecc3fc180f
Use PDEATHSIG to kill cli-server workers if parent exists
...
Closes GH-9476
2022-09-08 10:48:20 +02:00
Christoph M. Becker
aff99f5c1f
Support sapi/cli/tests/017.phpt on Windows, too
...
`escapeshellarg()` is pretty useless on Windows, and there is no way to
support multiple lines (i.e. line breaks). Thus, we use `proc_open()`
instead of `shell_exec()`.
We also remove some apparently superfluous empty lines from the test
expectation; that seems to match libedit behavior on Linux.
Closes GH-9474.
2022-09-05 14:45:05 +02: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
David Carlier
b836007483
Merge branch 'PHP-8.1'
2022-08-28 23:35:46 +01:00
David Carlier
819df032aa
Merge branch 'PHP-8.0' into PHP-8.1
2022-08-28 23:33:17 +01:00
David Carlier
e2a5428ca0
FPM fix strict prototype warnings.
...
Closes GH-8986.
2022-08-28 23:24:23 +01:00
Mikhail Galanin
335979fe1b
Add a bit verbosity in FPM logs
2022-08-28 22:35:10 +01:00
Vedran Miletić
7065a222b7
Respond with HTTP status 405 to DELETE/PUT/PATCH request on a static resource
...
Co-authored-by: Marin Martuslović <marin.martuslovic@student.uniri.hr >
2022-08-28 13:26:30 +01:00
Vedran Miletić
4f509058a9
Respond without body to HEAD request on a static resource
...
Co-authored-by: Marin Martuslović <marin.martuslovic@student.uniri.hr >
2022-08-28 13:26:30 +01:00
Máté Kocsis
b4ec3e9bc0
Do not generate CONST_CS when registering constants ( #9439 )
2022-08-28 08:27:19 +02:00
Máté Kocsis
06f86bfc65
Declare phpdbg constants in stubs ( #9392 )
2022-08-21 19:05:17 +02:00
Ilija Tovilo
98bdb7f99b
Make pestr[n]dup infallible ( #9295 )
...
Fixes GH-9128
Closes GH-9295
2022-08-12 12:21:14 +02:00
Michael Voříšek
bd3cd6a41a
Fix unstable sapi test, fix GH-9140 ( #9184 )
2022-08-04 22:35:44 +01:00
David Carlier
449edd815b
phpdbg few fixes, mostly printf-like format issues due to C str -> zend_string mismatches. annotate the allocator wrapper.
...
Closes #9210 .
2022-07-31 19:07:37 +01:00
Nikita Popov
828c93bedc
Fix unserialize dictionary generation
...
We now have namespaced classes in here, and need to escape the
backslashes.
2022-07-30 17:14:22 +02:00
Nikita Popov
107ad28350
Suppress unused-but-set-variable warning in parsers
...
This is very ugly: Bison provides a yynerrs variable, which is
usually not actually used, but also not annotated with
YY_MAYBE_UNUSED. Suppress this warning by adding a (void)yynerrs
into the top-level reduction action. The alternative would be to
disable the warning for these generated files.
2022-07-28 22:29:42 +02:00
George Peter Banyard
c8f4801382
Convert client->request.request_uri to zend_string ( #9086 )
2022-07-22 10:39:13 +01:00
Eric Norris
09237f6126
Update request startup error messages
2022-07-18 23:19:59 +01:00
Jakub Zelenka
922371f3b1
Do not send X-Powered-By if headers sent ( #9039 )
...
Co-authored-by: Eric Norris <erictnorris@gmail.com >
2022-07-18 18:01:05 +01:00
Felix Wiedemann
db5f6713ee
FPM Downgrade occasional "failed to acquire scoreboard" warning
...
With request timeouts configured, php-fpm occasionally prints the
following warning:
WARNING: failed to acquire scoreboard
This is happens when php-fpm checks the child scoreboards for timeouts,
but fails to acquire a lock immediately. As this can (and does) occur
during normal operation, this commit downgrades this to a notice.
2022-07-18 14:40:39 +01:00
David Carlier
079221b30e
Merge branch 'PHP-8.1'
2022-07-18 14:40:07 +01:00
David CARLIER
9a8ae45c4b
Revert "FPM: Downgrade occasional "failed to acquire scoreboard" warning"
...
This reverts commit 3040f75f43 .
2022-07-18 14:21:54 +01:00
David CARLIER
2a5b2cca85
Revert "FPM: Downgrade occasional "failed to acquire scoreboard" warning"
...
This reverts commit 3040f75f43 .
2022-07-18 14:21:07 +01:00
David Carlier
d0962859f4
Merge branch 'PHP-8.1'
2022-07-18 12:41:24 +01:00
David Carlier
edb173c200
Merge branch 'PHP-8.0' into PHP-8.1
2022-07-18 12:40:47 +01:00