Skip to content

Commit

Permalink
Merge pull request #145 from torinaki/add-worker-options
Browse files Browse the repository at this point in the history
Add possibility to specify php options for workers
  • Loading branch information
bwoebi committed May 13, 2017
2 parents 4c447b3 + e789bc8 commit d1b0fd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/WatcherProcess.php
Expand Up @@ -388,6 +388,10 @@ private function onDeadIpcClient(string $readWatcherId, $ipcClient) {
private function generateWorkerCommand(Console $console): string {
$parts[] = \PHP_BINARY;

if (false === php_ini_scanned_files()) {
$parts[] = "-n";
}

if ($ini = \get_cfg_var("cfg_file_path")) {
$parts[] = "-c";
$parts[] = $ini;
Expand Down

0 comments on commit d1b0fd1

Please sign in to comment.