hotfix: Bugfixes to php runner and apply command
This commit is contained in:
parent
0564c41976
commit
84f4e850f5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user