Skip to content

Commit bb6d727

Browse files
committed
docs: add comment explaining int param
1 parent 9a31a37 commit bb6d727

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/module.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![cfg(feature = "embed")]
33
extern crate ext_php_rs;
44

5+
use cfg_if::cfg_if;
6+
57
use ext_php_rs::embed::Embed;
68
use ext_php_rs::ffi::zend_register_module_ex;
79
use ext_php_rs::prelude::*;
@@ -10,8 +12,9 @@ use ext_php_rs::prelude::*;
1012
fn test_module() {
1113
Embed::run(|| {
1214
// Allow to load the module
13-
cfg_if::cfg_if! {
15+
cfg_if! {
1416
if #[cfg(php84)] {
17+
// Register as temporary (2) module
1518
unsafe { zend_register_module_ex(get_module(), 2) };
1619
} else {
1720
unsafe { zend_register_module_ex(get_module()) };

0 commit comments

Comments
 (0)