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

Breadcrumb

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

function XdebugHandler::mergeLoadedConfig

Returns default, changed and command-line ini settings

Parameters

mixed[] $loadedConfig All current ini settings:

mixed[] $iniConfig Settings from user ini files:

1 call to XdebugHandler::mergeLoadedConfig()
XdebugHandler::writeTmpIni in vendor/composer/xdebug-handler/src/XdebugHandler.php
Returns true if the tmp ini file was written

File

vendor/composer/xdebug-handler/src/XdebugHandler.php, line 500

Class

XdebugHandler
@author John Stevenson <john-stevenson@blueyonder.co.uk>

Namespace

Composer\XdebugHandler

Code

private function mergeLoadedConfig(array $loadedConfig, array $iniConfig) : string {
    $content = '';
    foreach ($loadedConfig as $name => $value) {
        // Value will either be null, string or array (HHVM only)
        if (!is_string($value) || strpos($name, 'xdebug') === 0 || $name === 'apc.mmap_file_mask') {
            continue;
        }
        if (!isset($iniConfig[$name]) || $iniConfig[$name] !== $value) {
            // Double-quote escape each value
            $content .= $name . '="' . addcslashes($value, '\\"') . '"' . PHP_EOL;
        }
    }
    return $content;
}

API Navigation

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