Skip to content

Commit e395c66

Browse files
committed
Fix: add php-cli to PATH
Resolves: paketo-buildpacks#425
1 parent d21c23f commit e395c66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

environment.go

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func NewEnvironment() Environment {
2222
// by the layer path, and the other paths provided as inputs. See PHP documentation
2323
// for an explanation of the environment variables' significance.
2424
func (e Environment) Configure(layer packit.Layer, extensionsDir string, defaultIniPath string, iniScanDirs []string) error {
25+
layer.SharedEnv.Prepend("PATH", filepath.Join(layer.Path, "bin"), string(os.PathSeparator))
2526
layer.SharedEnv.Prepend("PATH", filepath.Join(layer.Path, "sbin"), string(os.PathListSeparator))
2627
layer.SharedEnv.Default("MIBDIRS", filepath.Join(layer.Path, "mibs"))
2728

0 commit comments

Comments
 (0)