Skip to content

Commit

Permalink
Merge pull request #15 from JSignPdf/bugfix/redirect-strerr-to-stdout
Browse files Browse the repository at this point in the history
Redirect stderr to stdout and prevent display error
  • Loading branch information
jeidison authored Nov 14, 2022
2 parents 18d298b + 86f07de commit abd3a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sign/JSignService.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getVersion(JSignParam $params)
}
$this->throwIf(!file_exists($jSignPdf), 'Jar of JSignPDF not found on path: '. $jSignPdf);

$command = "$java -jar $jSignPdf --version";
$command = "$java -jar $jSignPdf --version 2>&1";
\exec($command, $output);
if (empty($output) || strpos($output[0], 'version') === false) {
return '';
Expand Down

0 comments on commit abd3a2e

Please sign in to comment.