From ad1fe0086f7b7fad24392340dd716d128aba260d Mon Sep 17 00:00:00 2001 From: Fabrice Meyer Date: Wed, 4 Sep 2024 11:37:19 +0200 Subject: [PATCH 1/2] 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..d67bbf6 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]); From 78e65664cd542d2cf7a9bd4692d97b6e443f9cdd Mon Sep 17 00:00:00 2001 From: Fabrice Meyer Date: Wed, 4 Sep 2024 11:38:59 +0200 Subject: [PATCH 2/2] 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 d67bbf6..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, ["LD_LIBRARY_PATH" => "."]); + $process = proc_open($cmd, $descriptorSpec, $pipes, self::BINARY_DIRECTORY, ["LD_LIBRARY_PATH" => "."]); @fclose($pipes[0]); $output = @stream_get_contents($pipes[1]);