8000 Merge pull request #131 from tucksaun/fix-124 · peter7775/symfony-cli@fd8a7fc · GitHub
[go: up one dir, main page]

Skip to content

Commit fd8a7fc

Browse files
authored
Merge pull request symfony-cli#131 from tucksaun/fix-124
Fix the PATH value when executing PHP, fix symfony-cli#124
2 parents 940ea20 + 20e5d65 commit fd8a7fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local/php/executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (e *Executor) Config(loadDotEnv bool) error {
242242
return err
243243
}
244244
}
245-
e.Paths = append([]string{path}, e.Paths...)
245+
e.Paths = append([]string{filepath.Dir(path), phpDir}, e.Paths...)
246246
if phpiniArgs {
247247
// see https://php.net/manual/en/configuration.file.php
248248
// if PHP_INI_SCAN_DIR exists, just append our new directory

0 commit comments

Comments
 (0)
0