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

Breadcrumb

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

function SystemDceSecurityProvider::hasShellExec

Returns true if shell_exec() is available for use

2 calls to SystemDceSecurityProvider::hasShellExec()
SystemDceSecurityProvider::getSystemGid in vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php
Returns the GID from the system
SystemDceSecurityProvider::getSystemUid in vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php
Returns the UID from the system

File

vendor/ramsey/uuid/src/Provider/Dce/SystemDceSecurityProvider.php, line 132

Class

SystemDceSecurityProvider
SystemDceSecurityProvider retrieves the user or group identifiers from the system

Namespace

Ramsey\Uuid\Provider\Dce

Code

private function hasShellExec() : bool {
    $disabledFunctions = strtolower((string) ini_get('disable_functions'));
    return !str_contains($disabledFunctions, 'shell_exec');
}

API Navigation

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