From d3fbf99169857f9d8fb77bf95e29ad7339342c25 Mon Sep 17 00:00:00 2001 From: chadek <32199566+chadek@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:46:24 +0200 Subject: [PATCH] fix x2t librairie issue #195 (#334) * fix x2t librairie issue #195 * fixup! fix x2t librairie issue #195 --- lib/Document/ConverterBinary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);