phpro / grumphp

A PHP code-quality tool
MIT License
4.13k stars 430 forks source link

Pass $_ENV variables to amp/parallel callback #863

Closed veewee closed 3 years ago

veewee commented 3 years ago
Q A
Branch master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Documented? no
Fixed tickets #856

amp/parallel-functions is not copying the env variables from the parent into the child process automatically. This fix enriches the $_ENV variables from the child process with the once set from the parent process.

The amp child process will pass the $_ENV during task execution to the task process in symfony/process (IF the value of the env variable is a string)