@@ -10,18 +10,18 @@ use parking_lot::{const_rwlock, RwLock, RwLockReadGuard, RwLockWriteGuard};
1010
1111use crate :: boxed:: ZBox ;
1212use crate :: exception:: PhpResult ;
13- #[ cfg( php80) ]
14- use crate :: ffi:: _zend_hash_find_known_hash;
15- #[ cfg( php82) ]
13+ #[ cfg( not( any( php80, php81) ) ) ]
1614use crate :: ffi:: zend_atomic_bool_store;
1715use crate :: ffi:: {
18- _sapi_module_struct, _zend_executor_globals, _zend_string , executor_globals ,
19- ext_php_rs_executor_globals , ext_php_rs_file_globals, ext_php_rs_process_globals,
20- ext_php_rs_sapi_globals , ext_php_rs_sapi_module, php_core_globals, php_file_globals,
21- sapi_globals_struct , sapi_header_struct, sapi_headers_struct, sapi_request_info,
22- zend_ini_entry , zend_is_auto_global, TRACK_VARS_COOKIE , TRACK_VARS_ENV , TRACK_VARS_FILES ,
23- TRACK_VARS_GET , TRACK_VARS_POST , TRACK_VARS_SERVER ,
16+ _sapi_module_struct, _zend_executor_globals, executor_globals , ext_php_rs_executor_globals ,
17+ ext_php_rs_file_globals, ext_php_rs_process_globals, ext_php_rs_sapi_globals ,
18+ ext_php_rs_sapi_module, php_core_globals, php_file_globals, sapi_globals_struct ,
19+ sapi_header_struct, sapi_headers_struct, sapi_request_info, zend_ini_entry ,
20+ zend_is_auto_global, TRACK_VARS_COOKIE , TRACK_VARS_ENV , TRACK_VARS_FILES , TRACK_VARS_GET ,
21+ TRACK_VARS_POST , TRACK_VARS_SERVER ,
2422} ;
23+ #[ cfg( php80) ]
24+ use crate :: ffi:: { _zend_hash_find_known_hash, _zend_string} ;
2525#[ cfg( not( php80) ) ]
2626use crate :: ffi:: {
2727 _zend_known_string_id_ZEND_STR_AUTOGLOBAL_REQUEST, zend_hash_find_known_hash,
@@ -161,7 +161,7 @@ impl ExecutorGlobals {
161161 /// set with [`crate::ffi::zend_interrupt_function`].
162162 pub fn request_interrupt ( & mut self ) {
163163 cfg_if:: cfg_if! {
164- if #[ cfg( php82 ) ] {
164+ if #[ cfg( not ( any ( php80 , php81 ) ) ) ] {
165165 unsafe {
166166 zend_atomic_bool_store( & mut self . vm_interrupt, true ) ;
167167 }
@@ -174,7 +174,7 @@ impl ExecutorGlobals {
174174 /// Cancel a requested an interrupt of the PHP VM.
175175 pub fn cancel_interrupt ( & mut self ) {
176176 cfg_if:: cfg_if! {
177- if #[ cfg( php82 ) ] {
177+ if #[ cfg( not ( any ( php80 , php81 ) ) ) ] {
178178 unsafe {
179179 zend_atomic_bool_store( & mut self . vm_interrupt, false ) ;
180180 }
0 commit comments