Skip to content

Commit 55de784

Browse files
committed
fix(embed): fix check result for php < 8.2
1 parent f35207c commit 55de784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/embed/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl Embed {
101101
match exec_result {
102102
Err(_) => Err(EmbedError::CatchError),
103103
#[cfg(not(php82))]
104-
Ok(0) => Ok(()),
104+
Ok(1) => Ok(()),
105105
#[cfg(php82)]
106106
Ok(true) => Ok(()),
107107
Ok(_) => Err(EmbedError::ExecuteScriptError),

0 commit comments

Comments
 (0)