1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Commit Graph

143107 Commits

Author SHA1 Message Date
Volker Dusch
f3dab2b17f Update versions for PHP 8.5.0RC2 php-8.5.0RC2 2025-10-07 14:15:52 +02:00
Arnaud Le Blanc
e886159059 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Upgrade Alpine in nightly job
2025-10-07 11:00:10 +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
294e408ca2 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix race condition in zend_runtime_jit(), zend_jit_hot_func()
2025-10-07 10:53:53 +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
1ca78dd98d uri: Update to uriparser-0.9.9-21-g08df3b2 (#19992)
This is specifically to backport uriparser/uriparser#265.

Fixes php/php-src#19897.
2025-10-06 21:51:13 +02:00
Tim Düsterhus
7858a83613 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Regenerate main/debug_gdb_scripts.c
2025-10-06 20:45:46 +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
49ed93d571 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  .gdbinit: Fix printing of variable names in `print_cvs` (#20077)
2025-10-06 20:18:16 +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
ff7e1e7105 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-19570: unable to fseek in /dev/zero and /dev/null
2025-10-06 18:16:48 +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
467e05b13a Fix misplaced entry in NEWS 2025-10-06 16:57:28 +02:00
Alexandre Daubois
b40e479e39 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-19926: reset internal pointer earlier while splicing array while COW violation flag is still set (#19929)
2025-10-06 16:53:45 +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
9130ddb42a Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Treat accept failing with SOCK_EAGAIN as success in CLI web server
2025-10-06 14:20:40 +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
Nicolas Grekas
fc353966f3 Revert deprecation of __sleep and __wakeup (#19966) 2025-10-06 10:30:27 +02:00
Jakub Zelenka
3419c1703d Merge branch 'PHP-8.4' into PHP-8.5 2025-10-06 10:13:34 +02:00
Arnaud Le Blanc
d34278a0cd Add Alpine push job (#20038) 2025-10-06 10:12:21 +02:00
Niels Dossche
a4add68b13 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  phar: Fix memory leaks when creating temp file fails when applying zip signature
2025-10-05 21:11:11 +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
1f809a55cf Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-20043: array_unique assertion failure with RC1 array causing an exception on sort
2025-10-05 20:16:12 +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
90e270838a Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  CI: Do not save ccache for PRs for LINUX_X32
2025-10-04 20:02:38 +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
a48de0a057 Skip proc_open_multiplex.phpt on PPC runner 2025-10-03 23:12:46 +02:00
Ilija Tovilo
db8e28b8a2 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Skip mysqli_fetch_all_data_types_variation.phpt on PPC runner
2025-10-03 23:12:16 +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
faa4c7f9e6 Fix flaky gh19984.phpt test
When the parent finishes before the child, we may miss some output from the
child and have the test fail.
2025-10-03 22:25:18 +02:00
Niels Dossche
5247df47a7 Fix NEWS 2025-10-03 22:05:56 +02:00
DubbleClick
2b8d8ba7c4 Fix cross-compilation for musl C library
This adds a PHP_C_STANDARD_LIBRARY Autoconf macro to detect glibc/musl
more accurately and fixes "cross-compilation" with musl-libc on glibc
systems.

Co-authored-by: Peter Kokot <peterkokot@gmail.com>

Closes GH-19352
2025-10-03 00:58:44 +02:00
Ilija Tovilo
1a44cd6557 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Automatically skip tty tests if not on tty
2025-10-03 00:47:30 +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
7f9b6a8c2a Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix GH-20011: Array of SoapVar of unknown type causes crash
2025-10-02 19:41:59 +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
010e178a40 Merge branch 'PHP-8.4' into PHP-8.5 2025-10-02 19:23:26 +02:00