private function setEnvironment($scannedInis, array $iniFiles)
    {
        $scanDir = getenv('PHP_INI_SCAN_DIR');
        $phprc = getenv('PHPRC');

        // Make original inis available to restarted process
        if (!putenv($this->envOriginalInis.'='.implode(PATH_SEPARATOR, $iniFiles))) {
            return false;
        }

        if ($this->persistent) {
            // Use the environment to persist the settings
            if (!putenv('PHP_INI_SCAN_DIR=') || !putenv('PHPRC='.$this->tmpIni)) {
                return false;
            }
        }

        // Flag restarted process and save values for it to use
        $envArgs = array(
            self::RESTART_ID,
            $this->loaded,
            (int) $scannedInis,
            false === $scanDir ? '*' : $scanDir,
            false === $phprc ? '*' : $phprc,
        );

        return putenv($this->envAllowXdebug.'='.implode('|', $envArgs));
    }
private function setEnvironment($scannedInis, array $iniFiles)
    {
        $scanDir = getenv('PHP_INI_SCAN_DIR');
        $phprc = getenv('PHPRC');

        // Make original inis available to restarted process
        if (!putenv($this->envOriginalInis.'='.implode(PATH_SEPARATOR, $iniFiles))) {
            return false;
        }

        if ($this->persistent) {
            // Use the environment to persist the settings
            if (!putenv('PHP_INI_SCAN_DIR=') || !putenv('PHPRC='.$this->tmpIni)) {
                return false;
            }
        }

        // Flag restarted process and save values for it to use
        $envArgs = array(
            self::RESTART_ID,
            $this->loaded,
            (int) $scannedInis,
            false === $scanDir ? '*' : $scanDir,
            false === $phprc ? '*' : $phprc,
        );

        return putenv($this->envAllowXdebug.'='.implode('|', $envArgs));
    }
private function setEnvironment ( $ scannedInis , array $ iniFiles ) { $ scanDir = getenv ( 'PHP_INI_SCAN_DIR' ) ; $ phprc = getenv ( 'PHPRC' ) ; // Make original inis available to restarted process if ( ! putenv ( $ this -> envOriginalInis . '=' . implode ( PATH_SEPARATOR , $ iniFiles ) ) ) { return false ; } if ( $ this -> persistent ) { // Use the environment to persist the settings if ( ! putenv ( 'PHP_INI_SCAN_DIR=' ) || ! putenv ( 'PHPRC=' . $ this -> tmpIni ) ) { return false ; } } // Flag restarted process and save values for it to use $ envArgs = array ( self :: RESTART_ID , $ this -> loaded , ( int ) $ scannedInis , false === $ scanDir ? '*' : $ scanDir , false === $ phprc ? '*' : $ phprc , ) ; return putenv ( $ this -> envAllowXdebug . '=' . implode ( '|' , $ envArgs ) ) ; }
Returns true if the restart environment variables were set

No need to update $_SERVER since this is set in the restarted process.

@param bool $scannedInis Whether there were scanned ini files
@param array $iniFiles All ini files used in the current process

@return bool
Returns true if the restart environment variables were set