Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class HarbormasterExecFuture extends Future { private $future; private..
Decoded Output download
<?php
final class HarbormasterExecFuture
extends Future {
private $future;
private $stdout;
private $stderr;
public function setFuture(ExecFuture $future) {
$this->future = $future;
return $this;
}
public function getFuture() {
return $this->future;
}
public function setLogs(
HarbormasterBuildLog $stdout,
HarbormasterBuildLog $stderr) {
$this->stdout = $stdout;
$this->stderr = $stderr;
return $this;
}
public function isReady() {
if ($this->hasResult()) {
return true;
}
$future = $this->getFuture();
$is_ready = $future->isReady();
list($stdout, $stderr) = $future->read();
$future->discardBuffers();
if ($this->stdout) {
$this->stdout->append($stdout);
}
if ($this->stderr) {
$this->stderr->append($stderr);
}
if ($future->hasResult()) {
$this->setResult($future->getResult());
}
// TODO: This should probably be implemented as a FutureProxy; it will
// not currently propagate exceptions or sockets properly.
return $is_ready;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class HarbormasterExecFuture
extends Future {
private $future;
private $stdout;
private $stderr;
public function setFuture(ExecFuture $future) {
$this->future = $future;
return $this;
}
public function getFuture() {
return $this->future;
}
public function setLogs(
HarbormasterBuildLog $stdout,
HarbormasterBuildLog $stderr) {
$this->stdout = $stdout;
$this->stderr = $stderr;
return $this;
}
public function isReady() {
if ($this->hasResult()) {
return true;
}
$future = $this->getFuture();
$is_ready = $future->isReady();
list($stdout, $stderr) = $future->read();
$future->discardBuffers();
if ($this->stdout) {
$this->stdout->append($stdout);
}
if ($this->stderr) {
$this->stderr->append($stderr);
}
if ($future->hasResult()) {
$this->setResult($future->getResult());
}
// TODO: This should probably be implemented as a FutureProxy; it will
// not currently propagate exceptions or sockets properly.
return $is_ready;
}
}
Function Calls
None |
Stats
MD5 | 785f65f1153d268a432a7601e03cd179 |
Eval Count | 0 |
Decode Time | 109 ms |