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

Breadcrumb

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

function XdebugHandler::checkServerArgv

Returns $_SERVER['argv'] if it is as expected

Return value

non-empty-list<string>|null

1 call to XdebugHandler::checkServerArgv()
XdebugHandler::prepareRestart in vendor/composer/xdebug-handler/src/XdebugHandler.php
Returns the command line array if everything was written for the restart

File

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

Class

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

Namespace

Composer\XdebugHandler

Code

private function checkServerArgv() : ?array {
    $result = [];
    if (isset($_SERVER['argv']) && is_array($_SERVER['argv'])) {
        foreach ($_SERVER['argv'] as $value) {
            if (!is_string($value)) {
                return null;
            }
            $result[] = $value;
        }
    }
    return count($result) > 0 ? $result : null;
}

API Navigation

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