1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Commit Graph

140311 Commits

Author SHA1 Message Date
Saki Takamachi
89010be7ec Update versions for PHP 8.4.14 php-8.4.14 2025-10-22 04:23:55 +09:00
Eric Mann
bb8aa3529d Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  PHP-8.3 is now for PHP 8.3.28-dev
2025-10-07 06:59:41 -07:00
Eric Mann
91eb2a558d PHP-8.3 is now for PHP 8.3.28-dev 2025-10-07 06:58:36 -07:00
Jakub Zelenka
5eb6a81b60 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Update NEWS entry for curl 8.16 update
  Update NEWS with info about curl 8.16 compat fixes
  Fix curl_setopt_ssl test for curl 8.16
  Fix more curl 8.16 issues
  Fix curl 8.16.0 compilation with zts
  Fix curl build failure on macOS+curl 8.16
2025-10-07 14:41:20 +02:00
Jakub Zelenka
78a24ffc03 Update NEWS entry for curl 8.16 update 2025-10-07 14:39:53 +02:00
Jakub Zelenka
201b358c01 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Update NEWS with info about curl 8.16 compat fixes
  Fix curl_setopt_ssl test for curl 8.16
  Fix more curl 8.16 issues
  Fix curl 8.16.0 compilation with zts
  Fix curl build failure on macOS+curl 8.16
2025-10-07 14:37:47 +02:00
Jakub Zelenka
810aed1141 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Update NEWS with info about curl 8.16 compat fixes
  Fix curl_setopt_ssl test for curl 8.16
  Fix more curl 8.16 issues
  Fix curl 8.16.0 compilation with zts
  Fix curl build failure on macOS+curl 8.16
2025-10-07 14:30:22 +02:00
Jakub Zelenka
742b7d8e55 Update NEWS with info about curl 8.16 compat fixes 2025-10-07 14:25:08 +02:00
Jakub Zelenka
36859ad977 Fix curl_setopt_ssl test for curl 8.16 2025-10-07 14:18:41 +02:00
Ilija Tovilo
b810a23587 Fix more curl 8.16 issues
The CURLOPT_FOLLOWLOCATION seems like a gcc bug, where the integer extension of
bool to long is lost, but I was unable to reproduce on godbolt.org.
2025-10-07 14:18:41 +02:00
Ilija Tovilo
da75e41a6f Fix curl 8.16.0 compilation with zts 2025-10-07 14:18:41 +02:00
Niels Dossche
1c8363d2bf Fix curl build failure on macOS+curl 8.16 2025-10-07 14:18:41 +02:00
Arnaud Le Blanc
93104e5c59 Upgrade Alpine in push job
Closes GH-20090
2025-10-07 14:13:37 +02:00
Arnaud Le Blanc
d929f42eb2 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Upgrade Alpine in nightly job
2025-10-07 11:00:01 +02:00
Arnaud Le Blanc
a6e81582b7 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Upgrade Alpine in nightly job
2025-10-07 10:59:23 +02:00
Arnaud Le Blanc
a30c92c9b5 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Upgrade Alpine in nightly job
2025-10-07 10:59:11 +02:00
Arnaud Le Blanc
66708de841 Upgrade Alpine in nightly job
Closes GH-20044
2025-10-07 10:58:36 +02:00
Arnaud Le Blanc
359ad80c4a Fix race condition in zend_runtime_jit(), zend_jit_hot_func()
zend_runtime_jit() prevents concurrent compilation with
zend_shared_alloc_lock(), but this doesn't prevent blocked threads from
trying to compile the function again after they acquire the lock.

In the case of GH-19889, one of the function entries is compiled with
zend_jit_handler(), which fails when the op handler has already been replaced by
a JIT'ed handler.

Fix by marking compiled functions with a new flag ZEND_FUNC_JITED, and
skipping compilation of marked functions. The same fix is applied to
zend_jit_hot_func().

Fixes GH-19889
Closes GH-19971
2025-10-07 10:48:44 +02:00
Tim Düsterhus
08924cd8c4 Regenerate main/debug_gdb_scripts.c
Following 9d9b73a3f0 / GH-20077.
2025-10-06 20:45:14 +02:00
Tim Düsterhus
32c16de1d0 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  .gdbinit: Fix printing of variable names in `print_cvs` (#20077)
2025-10-06 20:18:04 +02:00
Tim Düsterhus
9d9b73a3f0 .gdbinit: Fix printing of variable names in print_cvs (#20077)
Previously only the first character of each variable was printed.
2025-10-06 20:17:53 +02:00
Niels Dossche
2edb369181 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-19570: unable to fseek in /dev/zero and /dev/null
2025-10-06 18:16:37 +02:00
Niels Dossche
b7aeb0a69f Fix GH-19570: unable to fseek in /dev/zero and /dev/null
On Linux, these two character devices are exceptions in that they can be
seeked. Check their major/minor device number.

Co-authored-by: divinity76 <hans@loltek.net>
2025-10-06 18:16:16 +02:00
Alexandre Daubois
2cc4532865 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-19926: reset internal pointer earlier while splicing array while COW violation flag is still set (#19929)
2025-10-06 16:52:50 +02:00
Alexandre Daubois
64c1d43b68 Fix GH-19926: reset internal pointer earlier while splicing array while COW violation flag is still set (#19929) 2025-10-06 16:51:23 +02:00
Ilija Tovilo
0099779902 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Treat accept failing with SOCK_EAGAIN as success in CLI web server
2025-10-06 14:20:12 +02:00
Leo Gaskin
7e7d6d6380 Treat accept failing with SOCK_EAGAIN as success in CLI web server
This ensures that no useless "Failed to poll event" error messages are
logged during normal server operation, as the SOCK_EAGAIN error simply
indicates another worker is already serving the request.

Closes GH-19964
2025-10-06 14:19:45 +02:00
Arnaud Le Blanc
d34278a0cd Add Alpine push job (#20038) 2025-10-06 10:12:21 +02:00
Niels Dossche
33718fb5f7 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  phar: Fix memory leaks when creating temp file fails when applying zip signature
2025-10-05 21:11:03 +02:00
Niels Dossche
66c833444c phar: Fix memory leaks when creating temp file fails when applying zip signature
Also fixes up the error propagation at the call site which jumped to the
wrong place in the error handling code.

Closes GH-20057.
2025-10-05 21:10:34 +02:00
Niels Dossche
f2f84e36eb Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-20043: array_unique assertion failure with RC1 array causing an exception on sort
2025-10-05 20:15:55 +02:00
Niels Dossche
4fed57e746 Fix GH-20043: array_unique assertion failure with RC1 array causing an exception on sort
The reason this happens is because the array_unique operation happens in-place
because the input array is RC1.
At one point during comparison an exception is thrown which will capture the
arguments in the backtrace, which will increment the refcount of the RC1 array
to 2. Then a modification happens after the throw on the RC2 array causing the
assertion failure.
We shouldn't try continue work after an exception happened during the sort.

Closes GH-20059.
2025-10-05 20:15:28 +02:00
Tim Düsterhus
b79817b898 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  CI: Do not save ccache for PRs for LINUX_X32
2025-10-04 20:02:21 +02:00
Tim Düsterhus
51275be6c5 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  CI: Do not save ccache for PRs for LINUX_X32
2025-10-04 20:02:12 +02:00
Tim Düsterhus
db65d22ce2 CI: Do not save ccache for PRs for LINUX_X32
see #14168 which added this for all other builds
see 69dbfadd1e which added the LINUX_X32 build
2025-10-04 20:00:50 +02:00
Ilija Tovilo
0e1addf8b5 Skip mysqli_fetch_all_data_types_variation.phpt on PPC runner 2025-10-03 23:11:47 +02:00
Ilija Tovilo
019a179fe5 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Automatically skip tty tests if not on tty
2025-10-03 00:47:13 +02:00
Ilija Tovilo
831597748b Automatically skip tty tests if not on tty
See GH-19975
Closes GH-20013
2025-10-03 00:45:20 +02:00
Niels Dossche
19f345c824 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix GH-20011: Array of SoapVar of unknown type causes crash
2025-10-02 19:39:25 +02:00
Niels Dossche
eab2c2007b Fix GH-20011: Array of SoapVar of unknown type causes crash
We "guess" the type in this case, consistent with what a SoapVar would
do outside of an array.

Closes GH-20030.
2025-10-02 19:38:44 +02:00
Jakub Zelenka
57e1438ca5 Merge branch 'PHP-8.3' into PHP-8.4 2025-10-02 19:22:59 +02:00
Jakub Zelenka
288d698ce4 Prevent use after stack scope in stream strerr code (#20040) 2025-10-02 19:22:28 +02:00
Jakub Zelenka
10eb3d69c7 Merge branch 'PHP-8.3' into PHP-8.4 2025-10-02 13:43:47 +02:00
Jakub Zelenka
a3c14d6ab4 Do not use errno_t as it is not defined on musl (#20037) 2025-10-02 13:42:11 +02:00
David Carlier
3193fe0728 Merge branch 'PHP-8.3' into PHP-8.4 2025-10-02 12:30:41 +01:00
David Carlier
175afc4085 Fix GH-19705: do not flush/write buffer on non writeable stream.
Co-authored-by: Jakub Zelenka <bukka@php.net>

close GH-19708
2025-10-02 12:28:36 +01:00
Ilija Tovilo
2a74729d92 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix broken build on *BSD with MSAN
2025-10-02 00:44:37 +02:00
Guillaume Outters
26ca363a13 Fix broken build on *BSD with MSAN
The #if to declare instrumented versions of strlcpy and strlcat was too
inclusive on *BSD systems where Clang already provides instrumented strong
symbols, resulting in "duplicate symbol" at link-time.

Fix GH-20002
Closes GH-20032
2025-10-02 00:43:50 +02:00
Niels Dossche
b1d487a276 Fix GH-20022: docker-php-ext-install DOM failed
Closes GH-20023.
2025-10-01 13:00:59 +02:00
Niels Dossche
71f8c39962 Fix test 2025-10-01 12:58:50 +02:00