@@ -16,7 +16,7 @@ use bindgen::RustTarget;
1616use impl_:: Provider ;
1717
1818const MIN_PHP_API_VER : u32 = 20200930 ;
19- const MAX_PHP_API_VER : u32 = 20230831 ;
19+ const MAX_PHP_API_VER : u32 = 20240924 ;
2020
2121pub trait PHPProvider < ' a > : Sized {
2222 /// Create a new PHP provider.
@@ -229,9 +229,13 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
229229 const PHP_82_API_VER : u32 = 20220829 ;
230230
231231 const PHP_83_API_VER : u32 = 20230831 ;
232-
233- println ! ( "cargo::rustc-check-cfg=cfg(php80, php81, php82, php83, php_zts, php_debug, docs)" ) ;
234-
232+
233+ const PHP_84_API_VER : u32 = 20240924 ;
234+
235+ println ! (
236+ "cargo::rustc-check-cfg=cfg(php80, php81, php82, php83, php84, php_zts, php_debug, docs)"
237+ ) ;
238+
235239 if version < PHP_81_API_VER {
236240 println ! ( "cargo:rustc-cfg=php80" ) ;
237241 }
@@ -244,10 +248,14 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
244248 println ! ( "cargo:rustc-cfg=php82" ) ;
245249 }
246250
247- if version >= PHP_83_API_VER {
251+ if ( PHP_83_API_VER .. PHP_84_API_VER ) . contains ( & version ) {
248252 println ! ( "cargo:rustc-cfg=php83" ) ;
249253 }
250254
255+ if version >= PHP_84_API_VER {
256+ println ! ( "cargo:rustc-cfg=php84" ) ;
257+ }
258+
251259 Ok ( ( ) )
252260}
253261
0 commit comments