You are here

private function Snapshot::setupSuperGlobalArrays in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/global-state/src/Snapshot.php \SebastianBergmann\GlobalState\Snapshot::setupSuperGlobalArrays()

Returns a list of all super-global variable arrays.

Return value

array

1 call to Snapshot::setupSuperGlobalArrays()
Snapshot::__construct in vendor/sebastian/global-state/src/Snapshot.php
Creates a snapshot of the current global state.

File

vendor/sebastian/global-state/src/Snapshot.php, line 408

Class

Snapshot
A snapshot of global state.

Namespace

SebastianBergmann\GlobalState

Code

private function setupSuperGlobalArrays() {
  $this->superGlobalArrays = array(
    '_ENV',
    '_POST',
    '_GET',
    '_COOKIE',
    '_SERVER',
    '_FILES',
    '_REQUEST',
  );
  if (ini_get('register_long_arrays') == '1') {
    $this->superGlobalArrays = array_merge($this->superGlobalArrays, array(
      'HTTP_ENV_VARS',
      'HTTP_POST_VARS',
      'HTTP_GET_VARS',
      'HTTP_COOKIE_VARS',
      'HTTP_SERVER_VARS',
      'HTTP_POST_FILES',
    ));
  }
}