diff --git a/lib/Document/ConverterBinary.php b/lib/Document/ConverterBinary.php index 252b5c4..6519946 100644 --- a/lib/Document/ConverterBinary.php +++ b/lib/Document/ConverterBinary.php @@ -51,7 +51,7 @@ public function run(string $param, string $password = null): string { $password = htmlspecialchars($password, ENT_XML1, 'UTF-8'); $cmd .= ' ' . escapeshellarg("$password"); } - $process = proc_open($cmd, $descriptorSpec, $pipes, self::BINARY_DIRECTORY, []); + $process = proc_open($cmd, $descriptorSpec, $pipes, self::BINARY_DIRECTORY, ["LD_LIBRARY_PATH" => "."]); @fclose($pipes[0]); $output = @stream_get_contents($pipes[1]);