You are here

public function CSSmin::__construct in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 8.2 advagg_css_minify/yui/CSSMin.inc \CSSmin::__construct()
  2. 8.3 advagg_css_minify/yui/CSSMin.inc \CSSmin::__construct()
  3. 7.2 advagg_css_compress/yui/CSSMin.inc \CSSmin::__construct()

Parameters

bool|int $raise_php_limits: If true, PHP settings will be raised if needed

File

advagg_css_compress/yui/CSSMin.inc, line 43

Class

CSSmin

Code

public function __construct($raise_php_limits = TRUE) {

  // Set suggested PHP limits
  $this->memory_limit = 128 * 1048576;

  // 128MB in bytes
  $this->max_execution_time = 60;

  // 1 min
  $this->pcre_backtrack_limit = 1000 * 1000;
  $this->pcre_recursion_limit = 500 * 1000;
  $this->raise_php_limits = (bool) $raise_php_limits;
}