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

Breadcrumb

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

function Platform::clearEnv

putenv('X') equivalent but updates the runtime global variables too

5 calls to Platform::clearEnv()
CreateProjectCommand::installRootPackage in vendor/composer/composer/src/Composer/Command/CreateProjectCommand.php
EventDispatcher::doDispatch in vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php
Triggers the listeners of an event.
Git::cleanEnv in vendor/composer/composer/src/Composer/Util/Git.php
GlobalCommand::prepareSubcommandInput in vendor/composer/composer/src/Composer/Command/GlobalCommand.php
Svn::cleanEnv in vendor/composer/composer/src/Composer/Util/Svn.php

File

vendor/composer/composer/src/Composer/Util/Platform.php, line 101

Class

Platform
Platform helper for uniform platform-specific tests.

Namespace

Composer\Util

Code

public static function clearEnv(string $name) : void {
    putenv($name);
    unset($_SERVER[$name], $_ENV[$name]);
}

API Navigation

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