David Carlier
8a267b06ca
Merge branch 'PHP-8.2'
2023-02-09 19:58:00 +00:00
David Carlier
81aedad452
opcache/pcntl/cli: Fixes few functions signatures.
2023-02-09 19:57:48 +00:00
Peter Kokot
3030d956d9
[skip ci] Update year to 2023 ( #10374 )
2023-01-19 12:01:29 +01:00
Christoph M. Becker
c8955c078a
Revert GH-10220
...
Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816 >.
This reverts commit ecc880f491 .
This reverts commit 588a07f737 .
This reverts commit f377e15751 .
This reverts commit b4ba16fe18 .
This reverts commit 694ec1deea .
This reverts commit 6b34de8eba .
This reverts commit aa1cd02a43 .
This reverts commit 308fd311ea .
This reverts commit 16203b53e1 .
This reverts commit 738fb5ca54 .
This reverts commit 9fdbefacd3 .
This reverts commit cd4a7c1d90 .
This reverts commit 928685eba2 .
This reverts commit 01e5ffc85c .
2023-01-16 12:27:33 +01:00
Max Kellermann
6b34de8eba
sapi/*: add missing includes
2023-01-10 14:19:03 +00:00
David Carlier
84988d2093
cli server addressing few todos.
...
Closes GH-10124.
2022-12-22 14:03:35 +00:00
Jorg Adam Sowa
77ee92a50c
Remove unnecessary usage of CONST_CS
...
Closes GH-9685.
2022-11-28 17:12:07 +01:00
Ilija Tovilo
1fb40b501d
Disable CLI server pdeathsig test on 32-bit GitHub actions
2022-11-03 21:16:34 +01:00
Ilija Tovilo
ec55d341bf
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix cli server blocking on accept when using multiple workers
2022-10-20 13:04:32 +02: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
George Peter Banyard
f8b53e7028
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix memory-leak in CLI web server
2022-10-06 11:36:50 +01: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
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
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. <https://ci.appveyor.com/project/php/php-src/builds/43644961/job/xibhmsbs8panajy2?fullLog=true#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
Levi Morrison
c53c3e200b
Stop closing stderr and stdout streams ( #8571 )
...
Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.
However, some libraries will do things like try to detect color, and
these will outright fail and cause an error path to be taken.
2022-05-20 13:41:02 +02:00
Arnaud Le Blanc
980385d12d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Stop closing stderr and stdout streams (#8570 )
Revert "XFAIL tests (GH-8588)"
XFAIL tests (GH-8588)
Stop closing stderr and stdout streams (#8569 )
2022-05-20 13:40:27 +02:00
Levi Morrison
ffd27bdec4
Stop closing stderr and stdout streams ( #8570 )
...
Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.
However, some libraries will do things like try to detect color, and
these will outright fail and cause an error path to be taken.
2022-05-20 13:40:09 +02:00
Arnaud Le Blanc
6465f3ed13
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
XFAIL tests (GH-8588)
Stop closing stderr and stdout streams (#8569 )
2022-05-20 13:36:22 +02:00
Levi Morrison
fa78e17724
Stop closing stderr and stdout streams ( #8569 )
...
Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.
However, some libraries will do things like try to detect color, and
these will outright fail and cause an error path to be taken.
2022-05-20 13:27:23 +02:00
George Peter Banyard
9b19d90432
Refactor CLI SAPI php_cli_server_client struct to use zend_string ( #8522 )
...
This is a stepping stone in converting more pairs of ``char*`` and ``size_t`` to ``zend_string*`` across the CLI SAPI.
Also amend the CLI SAPI test setup to output it's content when it crashes/errors so that one can debug ASAN/UBSAN/MSAN violations.
Drive-by MSAN fix.
Co-authored-by: Arnaud Le Blanc <arnaud.lb@gmail.com >
2022-05-15 21:11:13 +01:00
Christoph M. Becker
81d1a1b47b
Update bug tracker links
...
The new php-src bugtracker is on Github.
Closes GH-8277.
2022-05-12 14:55:11 +02:00