Skip to content

Commit fd8a7fc

Browse files
authored
Merge pull request #131 from tucksaun/fix-124
Fix the PATH value when executing PHP, fix #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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy