Repository navigation
Commit 2300409
authored
Add PHP 8.6 support (#635)
## Summary
This PR adds support for **PHP 8.6**. It fixes two issues found while
testing on PHP 8.6, and it adds PHP 8.6 to CI:
- **Plugin:** `wpdb::prepare()` no longer raises a deprecation. It
called `ReflectionProperty::setAccessible()`, which is deprecated since
PHP 8.5 and only needed below PHP 8.1.
- **Proxy:** `--password-file` accepts `/dev/stdin` and process
substitutions on thread-safe PHP builds, such as the official
`php:8.6-cli` Docker image. On these builds, `is_readable()` fails for a
pipe on Linux.
- **CI:** The driver tests get a PHP 8.6 job. The parser and proxy tests
run on the oldest and the latest PHP version, so they move from 8.5 to
8.6.
- **Docs:** `README.md` and `AGENTS.md` list PHP 7.2 through 8.6 as
supported.
## Why
PHP 8.6 was released, and the project should run on it without notices
and deprecations.
## Note
The WordPress test jobs run on a PHP image pinned to 8.3.10, so they
don't test the plugin on PHP 8.5 or 8.6. That is why CI didn't catch the
`setAccessible()` deprecation.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Support now extends through PHP 8.6.
* **Bug Fixes**
* Password-file checks now correctly handle supported file-descriptor
paths while continuing to reject unreadable files.
* Improved SQLite database compatibility with PHP 8.1 and later.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent e82c914 commit 2300409
8 files changed
Lines changed: 19 additions & 12 deletions
File tree
- .github/workflows
- packages
- mysql-proxy
- bin
- tests
- plugin-sqlite-database-integration/wp-includes/sqlite
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 128 | | |
134 | 129 | | |
135 | 130 | | |
136 | 131 | | |
137 | 132 | | |
138 | | - | |
| 133 | + | |
139 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
528 | 532 | | |
529 | | - | |
530 | 533 | | |
531 | 534 | | |
532 | 535 | | |
| |||
0 commit comments