Skip to content

Commit 55238d1

Browse files
committed
feat(embed): fix php signature for embed
1 parent a66fc3f commit 55238d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/embed/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@ impl Embed {
9696

9797
match exec_result {
9898
Err(_) => Err(EmbedError::CatchError),
99+
#[cfg(any(php80, php81, php82))]
100+
Ok(0) => Ok(()),
101+
#[cfg(any(php83, php84))]
99102
Ok(true) => Ok(()),
100-
Ok(false) => Err(EmbedError::ExecuteScriptError),
103+
Ok(_) => Err(EmbedError::ExecuteScriptError),
101104
}
102105
}
103106

0 commit comments

Comments
 (0)