Skip to content

Commit 59e6484

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

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))]
100+
Ok(0) => Ok(()),
101+
#[cfg(any(php82, 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)