Niels Dossche
a1845944ce
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
php_cli_server: ensure single date header is present
2023-10-06 17:50:13 +02:00
coppolafab
f6ac08c6a3
php_cli_server: ensure single date header is present
...
Currently the PHP Development Server appends a Date header in the
response, despite already set from user code.
Added a check condition before append the header, and a test file.
Closes GH-12363.
2023-10-06 17:49:30 +02:00
Niels Dossche
6aa20956fb
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Ignore optional warning output in test
2023-10-02 22:55:28 +02:00
Niels Dossche
6cf76d552e
Ignore optional warning output in test
...
Due to the greedy behaviour of regex, we can't seem to use %A?
Use a for loop with a marker instead to ignore module startup warnings.
2023-10-02 22:53:39 +02:00
Niels Dossche
87cd401aaf
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix test under older CI configurations
2023-10-02 21:52:52 +02:00
Niels Dossche
b140f6e9f8
Fix test under older CI configurations
2023-10-02 21:52:44 +02:00
Niels Dossche
28a909d40a
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix #80092 : ZTS + preload = segfault on shutdown
2023-10-02 19:37:09 +02:00
Niels Dossche
bdc87b0f66
Fix #80092 : ZTS + preload = segfault on shutdown
...
After preloading has executed, the executor globals for class_table and
function_table are still referring to the values during preloading.
If no request happens after that then these values will remain dangling
pointers. If then the -v option on CLI or -h option (and possibly
others) on CGI is provided, there is a double free.
Fix it by nulling the pointers explicitly after preloading has finished
to fix it for all SAPIs.
Closes GH-12311.
2023-10-02 19:33:41 +02:00
Niels Dossche
75441d71d8
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-10964: Improve `man` page about the built-in server
Fix GH-11438: mysqlnd fails to authenticate with sha256_password accounts using passwords longer than 19 characters
2023-08-03 20:32:30 +02:00
Alexandre Daubois
997a36750b
Fix GH-10964: Improve man
page about the built-in server
...
Closes GH-11857.
2023-08-03 20:29:13 +02:00
Niels Dossche
272dc9a09c
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11716: cli server crashes on SIGINT when compiled with ZEND_RC_DEBUG=1
2023-07-21 15:31:20 +02:00
Niels Dossche
af77d3b8da
Fix GH-11716: cli server crashes on SIGINT when compiled with ZEND_RC_DEBUG=1
...
Closes GH-11757.
2023-07-21 15:23:56 +02:00
nielsdos
b9bf9ee2cb
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix interrupted CLI output causing the process to exit
2023-06-23 17:42:45 +02:00
nielsdos
1111a9517b
Fix interrupted CLI output causing the process to exit
...
When writing the output in the CLI is interrupted by a signal, the
writing will fail in sapi_cli_single_write(), causing an exit later in
sapi_cli_ub_write(). This was the other part of the issue in GH-11498.
The solution is to restart the write if an EINTR has been observed.
Closes GH-11510.
2023-06-23 17:39:04 +02:00
Ilija Tovilo
0bf8ecf9b3
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix bug GH-11246 cli/get_set_process_title
2023-05-31 17:10:17 +02:00
James Lucas
c6ae7a55b7
Fix bug GH-11246 cli/get_set_process_title
...
Fail to clobber_error only when the argv is a non-contiguous area
Don't increment the end_of_error if a non-contiguous area is encountered in environ
Closes GH-11247
2023-05-31 17:08:37 +02:00
Ilija Tovilo
9b15537e9a
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Unparallelize IO heavy tests
2023-03-27 16:34:11 +02:00
Ilija Tovilo
e1ec67acd6
Unparallelize IO heavy tests
...
Alternative to GH-10892. This is somewhat unfortunate since these are also the
slow tests. I'm also not sure if this actually helps.
Closes GH-10953
2023-03-27 16:33:36 +02:00
Ilija Tovilo
70c29f84b1
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[skip ci] Skip upload_2G.phpt on Cirrus
2023-03-15 02:11:49 +01:00
Ilija Tovilo
84e7d4a3c8
[skip ci] Skip upload_2G.phpt on Cirrus
2023-03-15 02:11:11 +01:00
David Carlier
81aedad452
opcache/pcntl/cli: Fixes few functions signatures.
2023-02-09 19:57:48 +00:00
Ilija Tovilo
ce527ed599
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix cli server blocking on accept when using multiple workers
2022-10-20 13:04:25 +02:00
Ilija Tovilo
6be8efdf78
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix cli server blocking on accept when using multiple workers
2022-10-20 13:04:14 +02:00
Ilija Tovilo
d52f0451ad
Fix cli server blocking on accept when using multiple workers
...
Fixes GH-9400
Closes GH-9693
2022-10-20 13:03:35 +02:00
Benoit Viguier
58fc34ffb7
Fix memory-leak in CLI web server
...
Closes GH-9680
Signed-off-by: George Peter Banyard <girgias@php.net>
2022-10-06 11:36:08 +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
Ilija Tovilo
98bdb7f99b
Make pestr[n]dup infallible ( #9295 )
...
Fixes GH-9128
Closes GH-9295
2022-08-12 12:21:14 +02:00
George Peter Banyard
c8f4801382
Convert client->request.request_uri to zend_string ( #9086 )
2022-07-22 10:39:13 +01:00
Jakub Zelenka
0a4a55fd44
Allow to not close stream on rscr dtor in php cli sapi
2022-07-18 10:58:50 +01:00
David Carlier
37e214bdc2
Merge branch 'PHP-8.1'
2022-07-14 12:20:59 +01:00
David Carlier
b44a17c02a
Merge branch 'PHP-8.0' into PHP-8.1
2022-07-14 12:13:21 +01:00
guoyiyuan
789a37f144
Prevent potential buffer overflow for large value of php_cli_server_workers_max
...
Fixes #8989 .
Closes #9000 .
2022-07-14 12:12:25 +01:00
Arnaud Le Blanc
61ad0d9136
Fix build
2022-07-09 23:30:15 +02:00
Arnaud Le Blanc
da1cbd20c3
Merge branch 'PHP-8.1'
...
* PHP-8.1:
[ci skip] NEWS
Fix GH-8952: std streams can not be deliberately closed (#8953 )
intl extension, build fix for icu >= 69.x release. ubrk/ucnv_safeClone had been deprecated in favor of ubrk/ucnv_clone which does not use user provided stacks but remain thread safe.
2022-07-09 23:01:07 +02:00
Arnaud Le Blanc
2dbde18b29
Fix GH-8952: std streams can not be deliberately closed ( #8953 )
2022-07-09 22:58:02 +02:00
Ayesh Karunaratne
d3c86527a5
Update mime-db from 1.45.0 to 1.52.0
...
Updates the the mime types supported by the built-in PHP server to match the mime types available from upstream `mime-db` database.
This updates the `mime-db` version from `v1.45.0` (released in 2020 Sep) to `v1.52.0` (latest, released in 2022 Feb), and syncs the mime types by running the mime type ingestion script.
2022-07-08 07:39:38 +01:00
George Peter Banyard
1c753a958b
Pre-compute remote address length in CLI SAPI
2022-07-01 21:18:26 +01:00
George Peter Banyard
b37245b8da
Refactor registration of variables for the CLI SAPI
2022-07-01 21:18:26 +01:00
George Peter Banyard
9a7d37ac66
Use size_t for get_ps_title() length parameter
2022-06-30 13:23:13 +01:00
George Peter Banyard
b468d6fb54
Use bool and rename variable for ease of comprehension in ps_title.c
2022-06-30 13:23:13 +01:00
Christoph M. Becker
b8dee9b3fc
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8827: Intentionally closing std handles no longer possible
2022-06-20 18:04:34 +02:00
Christoph M. Becker
a8437d08a8
Fix GH-8827: Intentionally closing std handles no longer possible
...
We revert the commits which caused this regression from the PHP-8.0 and
PHP-8.1 branches for now. We keep it in "master" because of PR #8833
which may offer a proper fix without BC break.
2022-06-20 18:01:02 +02:00
Máté Kocsis
49d3dde211
Declare true return types ( #8759 )
2022-06-18 22:06:50 +02:00
Derick Rethans
6770158d47
Only warn when an incorrect timezone is set through 'date.timezone'
2022-06-02 09:24:13 +01:00
George Peter Banyard
3bf4098eee
Refactor (again) CLI SAPI server_client struct to use zend_string* ( #8605 )
...
This time in a way which works under a RC Debug build.
2022-05-30 13:03:23 +01:00
George Peter Banyard
d08451b2ca
Replace php_stdint.h header with standard headers ( #8613 )
2022-05-29 11:20:56 +01:00
Christoph M. Becker
cf971a1401
Fix potential parallel test conflict
...
Cf. <43644961/job/xibhmsbs8panajy2 (L15770)
>.
2022-05-24 16:49:19 +02:00
George Peter Banyard
5ba6ecd523
Minor refactoring of main/main.c and TSRM ( #8608 )
2022-05-24 08:34:55 +01:00
Nikita Popov
82d407b7e0
Revert "Refactor CLI SAPI php_cli_server_client struct to use zend_string ( #8522 )"
...
This reverts commit 9b19d90432
.
This has broken the ZEND_RC_DEBUG build.
2022-05-21 16:52:21 +02:00