Skip to content

Commit abd3a2e

Browse files
authored
Merge pull request #15 from JSignPdf/bugfix/redirect-strerr-to-stdout
Redirect stderr to stdout and prevent display error
2 parents 18d298b + 86f07de commit abd3a2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Sign/JSignService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getVersion(JSignParam $params)
6060
}
6161
$this->throwIf(!file_exists($jSignPdf), 'Jar of JSignPDF not found on path: '. $jSignPdf);
6262

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

0 commit comments

Comments
 (0)