Skip to content

Commit 491f45c

Browse files
committed
Add php version 7.0.
1 parent f5ceb8b commit 491f45c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
os:
2222
- ubuntu-latest
2323
php-version:
24+
- 7.0
2425
- 7.1
2526
- 7.2
2627
- 7.3

phper/src/zend/api.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ impl<T: 'static> ModuleGlobals<T> {
3434
on_modify: Option<Mh>,
3535
modifiable: u32,
3636
) -> zend_ini_entry_def {
37-
#[cfg(any(
38-
phper_php_version = "7.4",
39-
phper_php_version = "7.3",
40-
))]
37+
#[cfg(any(phper_php_version = "7.4", phper_php_version = "7.3",))]
4138
let (modifiable, name_length) = (modifiable as std::os::raw::c_uchar, name.len() as u16);
4239
#[cfg(any(
4340
phper_php_version = "7.2",
4441
phper_php_version = "7.1",
42+
phper_php_version = "7.0",
4543
))]
4644
let (modifiable, name_length) = (modifiable as std::os::raw::c_int, name.len() as u32);
4745

0 commit comments

Comments
 (0)