We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e176cbd commit 9a31a37Copy full SHA for 9a31a37
src/embed/mod.rs
@@ -255,7 +255,7 @@ mod tests {
255
#[test]
256
#[should_panic]
257
fn test_panic() {
258
- Embed::run(|| {
+ Embed::run::<(), _>(|| {
259
panic!("test panic");
260
});
261
}
tests/module.rs
@@ -10,7 +10,13 @@ use ext_php_rs::prelude::*;
10
fn test_module() {
11
Embed::run(|| {
12
// Allow to load the module
13
- unsafe { zend_register_module_ex(get_module()) };
+ cfg_if::cfg_if! {
14
+ if #[cfg(php84)] {
15
+ unsafe { zend_register_module_ex(get_module(), 2) };
16
+ } else {
17
+ unsafe { zend_register_module_ex(get_module()) };
18
+ }
19
20
21
let result = Embed::eval("$foo = hello_world('foo');");
22
0 commit comments