Skip to content

Commit

Permalink
Merge pull request #131 from tucksaun/fix-124
Browse files Browse the repository at this point in the history
Fix the PATH value when executing PHP, fix #124
  • Loading branch information
fabpot committed Apr 20, 2022
2 parents 940ea20 + 20e5d65 commit fd8a7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/php/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (e *Executor) Config(loadDotEnv bool) error {
return err
}
}
e.Paths = append([]string{path}, e.Paths...)
e.Paths = append([]string{filepath.Dir(path), phpDir}, e.Paths...)
if phpiniArgs {
// see https://php.net/manual/en/configuration.file.php
// if PHP_INI_SCAN_DIR exists, just append our new directory
Expand Down

0 comments on commit fd8a7fc

Please sign in to comment.