Skip to content

Commit 78799e7

Browse files
committed
chore(php): Add deprecation warning for php 8.0
Refs: #343
1 parent ac3220a commit 78799e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
237237
);
238238
println!("cargo:rustc-cfg=php80");
239239

240+
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.");
242+
}
243+
240244
if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {
241245
println!("cargo:rustc-cfg=php81");
242246
}

0 commit comments

Comments
 (0)