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

Breadcrumb

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

function ConsoleOutput::isRunningOS400

Checks if current executing environment is IBM iSeries (OS400), which doesn't properly convert character-encodings between ASCII to EBCDIC.

2 calls to ConsoleOutput::isRunningOS400()
ConsoleOutput::hasStderrSupport in vendor/symfony/console/Output/ConsoleOutput.php
Returns true if current environment supports writing console output to STDERR.
ConsoleOutput::hasStdoutSupport in vendor/symfony/console/Output/ConsoleOutput.php
Returns true if current environment supports writing console output to STDOUT.

File

vendor/symfony/console/Output/ConsoleOutput.php, line 117

Class

ConsoleOutput
ConsoleOutput is the default class for all CLI output. It uses STDOUT and STDERR.

Namespace

Symfony\Component\Console\Output

Code

private function isRunningOS400() : bool {
    $checks = [
        \function_exists('php_uname') ? php_uname('s') : '',
        getenv('OSTYPE'),
        \PHP_OS,
    ];
    return false !== stripos(implode(';', $checks), 'OS400');
}

API Navigation

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