Skip to content

Commit

Permalink
chore(php): Add deprecation warning for php 8.0
Browse files Browse the repository at this point in the history
Refs: #343
  • Loading branch information
Xenira committed Jan 9, 2025
1 parent ac3220a commit 78799e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
);
println!("cargo:rustc-cfg=php80");

if (MIN_PHP_API_VER..PHP_81_API_VER).contains(&version) {
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.");
}

if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {
println!("cargo:rustc-cfg=php81");
}
Expand Down

0 comments on commit 78799e7

Please sign in to comment.