Skip to content

Commit 116c698

Browse files
committed
Add version
1 parent fc6a8ae commit 116c698

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
228228

229229
const PHP_82_API_VER: u32 = 20220829;
230230

231+
const PHP_83_API_VER: u32 = 20230831;
232+
231233
println!("cargo:rustc-cfg=php80");
232234

233235
if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {
@@ -238,6 +240,10 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
238240
println!("cargo:rustc-cfg=php82");
239241
}
240242

243+
if version >= PHP_83_API_VER {
244+
println!("cargo:rustc-cfg=php83");
245+
}
246+
241247
Ok(())
242248
}
243249

0 commit comments

Comments
 (0)