Skip to content

Why are environment variables not passed to the created process?! #493

@mymagikbox

Description

@mymagikbox

Why are environment variables not passed to the created process?!

$process = new Process($cmd, null, null, $message, $ttr);

I use the vlucas/phpdotenv library and my entire database connection configuration is in environment variables. Why can’t you pass local variables into the running process - this will solve the problem!

$env = isset($_ENV) ? $_ENV : null;

$process = new Process($cmd, null, $env, $message, $ttr);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions