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.
2 parents 086e0cc + efa5c9a commit f58a4edCopy full SHA for f58a4ed
source/functions.php
@@ -52,10 +52,17 @@ function defer($code) {
52
";
53
54
$result = exec(
55
- escapeshellcmd(PHP_BINARY) . " -r 'eval(base64_decode(\"" . base64_encode($defer) . "\"));'"
+ escapeshellcmd(PHP_BINARY) . " -r 'eval(base64_decode(\"" . base64_encode($defer) . "\"));'",
56
+ $output
57
);
58
- return gzdecode(base64_decode($result));
59
+ $return = @gzdecode(base64_decode($result));
60
+
61
+ if ($return === false) {
62
+ throw new \RuntimeException("defer failed due to " . implode("\n", $output));
63
+ }
64
65
+ return $return;
66
}
67
68
0 commit comments