Skip to content

Commit b9e42db

Browse files
committed
docs(php): add information about supported php versions
1 parent 78799e7 commit b9e42db

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Export a simple function `function hello_world(string $name): string` to PHP:
2222
use ext_php_rs::prelude::*;
2323

2424
/// Gives you a nice greeting!
25-
///
25+
///
2626
/// @param string $name Your name.
27-
///
27+
///
2828
/// @return string Nice greeting!
2929
#[php_function]
3030
pub fn hello_world(name: String) -> String {
@@ -116,6 +116,10 @@ best resource at the moment. This can be viewed at [docs.rs].
116116
- Linux, macOS or Windows-based operating system.
117117
- PHP 8.0 or later.
118118
- No support is planned for earlier versions of PHP.
119+
- PHP versions, that no longer receive security updates, will no longer be
120+
supported. They might still work, but no guarantees are made.
121+
- See <https://www.php.net/supported-versions.php> for information on PHP
122+
supported versions and their end of life dates.
119123
- Rust.
120124
- Currently, we maintain no guarantee of a MSRV, however lib.rs suggests Rust
121125
1.57 at the time of writing.

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
238238
println!("cargo:rustc-cfg=php80");
239239

240240
if (MIN_PHP_API_VER..PHP_81_API_VER).contains(&version) {
241-
println!("cargo:warning=PHP version 8.0 is EOL and will be removed in a future release. Please upgrade to a supported version of PHP. See https://www.php.net/supported-versions.php for information on version support timelines. Once a version is no longer supported we will drop it, as it is no longer receiving security updates.");
241+
println!("cargo:warning=PHP version 8.0 is EOL and will no longer be supported in a future release. Please upgrade to a supported version of PHP. See https://www.php.net/supported-versions.php for information on version support timelines.");
242242
}
243243

244244
if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {

0 commit comments

Comments
 (0)