hotfix: Bugfixes to php runner and apply command

This commit is contained in:
Chris 2016-12-12 00:27:29 +01:00
parent 0564c41976
commit 84f4e850f5
2 changed files with 4 additions and 1 deletions

View File

@ -107,9 +107,11 @@ class ApplyCommand extends Command
$keyid = $signature->getKeyId();
$signer = $signature->getSigner();
$output->writeln("Hotfix has good signature from <fg=green;options=bold>{$signer}</fg=green;options=bold> (keyid <info>{$keyid}</info>)");
return true;
} else {
$error = $signature->getError();
$output->writeln("<fg=red;options=bold>Warning: {$error}</fg=red;options=bold>");
return false;
}
}

View File

@ -44,7 +44,8 @@ class PhpRunner implements RunnerInterface
file_put_contents($tmpfile, '<?php '.$stub."\n".$body."\n");
// Execute the hotfix and clean up
passthru("php {$tmpfile}");
//passthru("php {$tmpfile}");
include $tmpfile;
unlink($tmpfile);
}