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

140674 Commits

Author SHA1 Message Date
Dmitry Stogov
af704ae067 Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix register allocarion for result of ASSIGN_OBJ (#17994)
2025-03-07 19:30:47 +03:00
Dmitry Stogov
1b9d659c3f Fix register allocarion for result of ASSIGN_OBJ (#17994)
This fixes few failures in Symfony unit tests with function JIT
2025-03-07 19:28:51 +03:00
Calvin Buckley
71ee356d2c Merge branch 'PHP-8.4'
* PHP-8.4:
  Remove "Notify Slack" on ppc nightly workflow (#17993)
2025-03-07 10:40:10 -04:00
Calvin Buckley
7634484dc2 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Remove "Notify Slack" on ppc nightly workflow (#17993)
2025-03-07 10:40:01 -04:00
Calvin Buckley
5942a611e4 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Remove "Notify Slack" on ppc nightly workflow (#17993)
2025-03-07 10:39:48 -04:00
Calvin Buckley
23c68045b4 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Remove "Notify Slack" on ppc nightly workflow (#17993)
2025-03-07 10:39:35 -04:00
Calvin Buckley
5e8aff2c5f Remove "Notify Slack" on ppc nightly workflow (#17993)
We get weird failures at here, and Ilija was talking about possibly
removing it in general.
2025-03-07 10:39:14 -04:00
Dmitry Stogov
cd586623b6 Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix function JIT for Wordpress unit tests
2025-03-07 02:32:29 +03:00
Dmitry Stogov
5885b9490c Fix function JIT for Wordpress unit tests 2025-03-07 02:30:30 +03:00
Dmitry Stogov
972d6b6664 Fix JIT for INIT_STATIC_METHOD_CALL in a closure 2025-03-07 01:09:28 +03:00
Niels Dossche
e3a5c38382 Merge branch 'PHP-8.4'
* PHP-8.4:
  Add test for GH-17966
2025-03-06 21:56:01 +01:00
Niels Dossche
bac1ed6579 Add test for GH-17966
This was fixed via https://github.com/dstogov/ir/pull/109 which was
merged in cc70838dc9.
2025-03-06 21:55:53 +01:00
Dmitry Stogov
ad5de59f93 Merge branch 'PHP-8.4'
* PHP-8.4:
  Merge IR
2025-03-06 23:01:25 +03:00
Dmitry Stogov
cc70838dc9 Merge IR
IR commit: 0441281e95ce9736131eddc71ce666389dcccd4b
2025-03-06 23:00:53 +03:00
Dmitry Stogov
d9e39f5c6f Fix JIT for INIT_STATIC_METHOD_CALL in a closure 2025-03-06 21:53:45 +03:00
Niels Dossche
5009c236fc Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix GH-15834: Segfault with hook "simple get" cache slot and minimal JIT
2025-03-06 19:37:29 +01:00
Niels Dossche
f6c2e40a11 Fix GH-15834: Segfault with hook "simple get" cache slot and minimal JIT
The FETCH_OBJ_R VM handler has an optimization that directly enters into
a hook if it is a simpler getter hook. This is not compatible with the
minimal JIT because the minimal JIT will try to continue executing the
opcodes after the FETCH_OBJ_R.
To solve this, we check whether the opcode is still the expected one
after the execution of the VM handler. If it is not, we know that we are
going to execute a simple hook. In that case, exit to the VM.

Closes GH-17909.
2025-03-06 19:37:21 +01:00
Niels Dossche
9ddc25afe3 Simplify array_any(), array_all(), array_find(), array_find_key() (#17978)
By returning something more semantically meaningful that SUCCESS/FAILURE
we can avoid refcounting for array_all() and array_any().
Also we can avoid resetting the input values to UNDEF.
2025-03-06 19:33:41 +01:00
Dmitry Stogov
918332cf9c Fix Symfony tests failures with function JIT 2025-03-06 19:18:38 +03:00
Ilija Tovilo
01a894a269 Merge branch 'PHP-8.4'
* PHP-8.4:
  Upgrade security branches to Ubuntu 22.04
2025-03-06 15:25:28 +01:00
Ilija Tovilo
4d5a88c7fc Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Upgrade security branches to Ubuntu 22.04
2025-03-06 15:25:24 +01:00
Ilija Tovilo
01c1dbb349 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Upgrade security branches to Ubuntu 22.04
2025-03-06 15:25:16 +01:00
Ilija Tovilo
1009ff65cc Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Upgrade security branches to Ubuntu 22.04
2025-03-06 15:24:35 +01:00
Ilija Tovilo
5fcc8d4cd1 Upgrade security branches to Ubuntu 22.04
20.04 goes out of security support in 2 months. Backporting various
commits.

See d98963a071
See af721c9c36
See 378b79b90c

Closes GH-17963
2025-03-06 15:24:15 +01:00
Ilija Tovilo
bc32bb164f Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix flaky DatePeriod test
2025-03-06 15:04:36 +01:00
Ilija Tovilo
253c579c25 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix flaky DatePeriod test
2025-03-06 15:04:29 +01:00
Ilija Tovilo
a840a54fbc Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Fix flaky DatePeriod test
2025-03-06 15:04:18 +01:00
Ilija Tovilo
9256ee7b1b Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Fix flaky DatePeriod test
2025-03-06 15:04:08 +01:00
Ilija Tovilo
8a699372f2 Fix flaky DatePeriod test
$start and $end use the H:i:s from the current time. If $end happens on
a second boundary, $start + 4 days will include $end, thus performing an
extra iteration. Fix this by setting H:i:s to 00:00:00.
2025-03-06 15:01:30 +01:00
Niels Dossche
0dede83264 Merge branch 'PHP-8.4'
* PHP-8.4:
  Fix memory leaks in array_any() / array_all()
2025-03-05 19:53:30 +01:00
Niels Dossche
75cca9f19e Fix memory leaks in array_any() / array_all()
The return value is overwritten, but if the key was not an interned
string we should destroy it.

Closes GH-17977.
2025-03-05 19:52:16 +01:00
Niels Dossche
83722a5fdc Fix memory leaks in array_any() / array_all()
The return value is overwritten, but if the key was not an interned
string we should destroy it.

Closes GH-17977.
2025-03-05 19:51:51 +01:00
Calvin Buckley
eebc7b0a7a Merge branch 'PHP-8.4'
* PHP-8.4:
  Skip mysqli/tests/bug73462 on PPC CI (#17971)
2025-03-05 10:20:34 -04:00
Calvin Buckley
b2e49c80bf Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Skip mysqli/tests/bug73462 on PPC CI (#17971)
2025-03-05 10:20:19 -04:00
Calvin Buckley
a30a41af78 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Skip mysqli/tests/bug73462 on PPC CI (#17971)
2025-03-05 10:19:52 -04:00
Calvin Buckley
1afbaaa804 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Skip mysqli/tests/bug73462 on PPC CI (#17971)
2025-03-05 10:18:41 -04:00
Calvin Buckley
dc6586dd9d Skip mysqli/tests/bug73462 on PPC CI (#17971)
* Skip this test on PPC CI

Seems to be unfortunately flaky with persistent connections.

* use spaces in phpt file
2025-03-05 10:17:39 -04:00
rekmixa
4f5136cf2e Allow substituting static for self in final classes
Fixes GH-17725
Closes GH-17724
2025-03-05 11:31:46 +01:00
Ayesh Karunaratne
cab120f521 ext/curl: update Caddyfile basicauth to basic_auth
In Caddy 2.8, `basicauth` was renamed to `basic_auth`.

This also applies `caddy fmt Caddyfile --overwrite` changes.
2025-03-05 16:30:59 +07:00
Gina Peter Banyard
fe8d39afc4 ext/pdo: Pack _pdo_dbh_t struct (#17741)
This reduces the size from 176 to 152 bytes
2025-03-04 22:10:16 +00:00
Gina Peter Banyard
cd65240673 ext/pdo: Add tests for PDO::ATTR_STATEMENT_CLASS attribute (#17969) 2025-03-04 17:09:17 +00:00
Ayesh Karunaratne
8e39e9c815 ext/curl: update sync-constants.php consts-ignore list 2025-03-04 21:21:00 +07:00
Tim Düsterhus
057ff3519d sapi/cli: Print non-default INI settings for --ini=diff (#17762)
This is a follow-up for php/php-src#17459, updating the command-line flag to
not modify the behavior of `--ini`.
2025-03-04 08:42:06 +01:00
Ilija Tovilo
0df99742c4 Merge branch 'PHP-8.4'
* PHP-8.4:
  Upgrade i386 branch to Ubuntu 22.04
2025-03-03 23:25:14 +01:00
Ilija Tovilo
2076ab1248 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Upgrade i386 branch to Ubuntu 22.04
2025-03-03 23:24:21 +01:00
Ilija Tovilo
294888053a Upgrade i386 branch to Ubuntu 22.04 2025-03-03 22:15:23 +01:00
Dmitry Stogov
9dd2ae4d76 Merge branch 'PHP-8.4'
* PHP-8.4:
  Merge IR
2025-03-03 23:48:30 +03:00
Dmitry Stogov
f016caa312 Merge IR
IR commit: 1a02c4819f210a1f4548b83850ed7cd5c76c13aa
2025-03-03 23:48:08 +03:00
Gina Peter Banyard
9285559c8c ext/bz2: Use new php_streams fast ZPP specifier 2025-03-03 18:08:23 +00:00
Gina Peter Banyard
ff40eed32d ext/hash: Use new php_streams fast ZPP specifier 2025-03-03 18:08:23 +00:00