File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 21
21
os :
22
22
- ubuntu-latest
23
23
php-version :
24
+ - 7.1
25
+ - 7.2
24
26
- 7.3
25
27
- 7.4
26
28
31
33
with :
32
34
php-version : ${{ matrix.php-version }}
33
35
36
+ - name : PHP Config
37
+ run : php-config --version && php-config --phpapi
38
+
34
39
- name : Checkout
35
40
uses : actions/checkout@v2
36
41
Original file line number Diff line number Diff line change @@ -34,15 +34,16 @@ impl<T: 'static> ModuleGlobals<T> {
34
34
on_modify : Option < Mh > ,
35
35
modifiable : u32 ,
36
36
) -> zend_ini_entry_def {
37
- #[ cfg( phper_php_version = "7.3" ) ]
38
- let modifiable = modifiable as std:: os:: raw:: c_uchar ;
39
- #[ cfg( phper_php_version = "7.2" ) ]
40
- let modifiable = modifiable as std:: os:: raw:: c_int ;
41
-
42
- #[ cfg( phper_php_version = "7.3" ) ]
43
- let name_length = name. len ( ) as u16 ;
44
- #[ cfg( phper_php_version = "7.2" ) ]
45
- let name_length = name. len ( ) as u32 ;
37
+ #[ cfg( any(
38
+ phper_php_version = "7.4" ,
39
+ phper_php_version = "7.3" ,
40
+ ) ) ]
41
+ let ( modifiable, name_length) = ( modifiable as std:: os:: raw:: c_uchar , name. len ( ) as u16 ) ;
42
+ #[ cfg( any(
43
+ phper_php_version = "7.2" ,
44
+ phper_php_version = "7.1" ,
45
+ ) ) ]
46
+ let ( modifiable, name_length) = ( modifiable as std:: os:: raw:: c_int , name. len ( ) as u32 ) ;
46
47
47
48
zend_ini_entry_def {
48
49
name : name. as_ptr ( ) . cast ( ) ,
You can’t perform that action at this time.
0 commit comments