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

Breadcrumb

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

function PhpSubprocess::mergeLoadedConfig

1 call to PhpSubprocess::mergeLoadedConfig()
PhpSubprocess::writeTmpIni in vendor/symfony/process/PhpSubprocess.php

File

vendor/symfony/process/PhpSubprocess.php, line 136

Class

PhpSubprocess
PhpSubprocess runs a PHP command as a subprocess while keeping the original php.ini settings.

Namespace

Symfony\Component\Process

Code

private function mergeLoadedConfig(array $loadedConfig, array $iniConfig) : string {
    $content = '';
    foreach ($loadedConfig as $name => $value) {
        if (!\is_string($value)) {
            continue;
        }
        if (!isset($iniConfig[$name]) || $iniConfig[$name] !== $value) {
            // Double-quote escape each value
            $content .= $name . '="' . addcslashes($value, '\\"') . "\"\n";
        }
    }
    return $content;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal