From 13cade66cce023216c67d97d147fd0a60a0fdc95 Mon Sep 17 00:00:00 2001 From: Netkas Date: Fri, 16 Jun 2023 03:44:18 -0400 Subject: [PATCH] Pass on cwd to the sub-process in \TamerLib\Objects > WorkerInstance > start() --- src/TamerLib/Objects/WorkerInstance.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TamerLib/Objects/WorkerInstance.php b/src/TamerLib/Objects/WorkerInstance.php index f9e6583..31ab336 100644 --- a/src/TamerLib/Objects/WorkerInstance.php +++ b/src/TamerLib/Objects/WorkerInstance.php @@ -104,6 +104,7 @@ $php_bin = (new PhpExecutableFinder())->find(); $process = new Process(array_merge([$php_bin, $this->path], $pass_args)); + $process->setWorkingDirectory(getcwd()); $process->setEnv($this->configuration->toEnvironment()); try