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

Breadcrumb

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

function Runtime::discardsComments

Returns true when Zend OPcache is loaded, enabled, and is configured to discard comments.

File

vendor/sebastian/environment/src/Runtime.php, line 49

Class

Runtime

Namespace

SebastianBergmann\Environment

Code

public function discardsComments() : bool {
    if (!$this->isOpcacheActive()) {
        return false;
    }
    if (ini_get('opcache.save_comments') !== '0') {
        return false;
    }
    return true;
}
RSS feed
Powered by Drupal