Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::getDefaultEnv

1 call to Process::getDefaultEnv()
Process::start in vendor/symfony/process/Process.php
Starts the process and returns after writing the input to STDIN.

File

vendor/symfony/process/Process.php, line 1667

Class

Process
Process is a thin wrapper around proc_* functions to easily start independent PHP processes.

Namespace

Symfony\Component\Process

Code

private function getDefaultEnv() : array {
    $env = getenv();
    $env = ('\\' === \DIRECTORY_SEPARATOR ? array_intersect_ukey($env, $_SERVER, 'strcasecmp') : array_intersect_key($env, $_SERVER)) ?: $env;
    return $_ENV + ('\\' === \DIRECTORY_SEPARATOR ? array_diff_ukey($env, $_ENV, 'strcasecmp') : $env);
}
RSS feed
Powered by Drupal