Same name in other branches
- 8.x-2.x advagg_css_minify/yui/CSSMin.inc \CSSmin::do_raise_php_limits()
Try to configure PHP to use at least the suggested minimum settings
1 call to CSSmin::do_raise_php_limits()
- CSSmin::run dans advagg_css_minify/
yui/ CSSMin.inc - Minify a string of CSS
Fichier
-
advagg_css_minify/
yui/ CSSMin.inc, line 205
Classe
Code
private function do_raise_php_limits() {
$php_limits = array(
'memory_limit' => $this->memory_limit,
'max_execution_time' => $this->max_execution_time,
'pcre.backtrack_limit' => $this->pcre_backtrack_limit,
'pcre.recursion_limit' => $this->pcre_recursion_limit,
);
// If current settings are higher respect them.
foreach ($php_limits as $name => $suggested) {
$current = $this->normalize_int(ini_get($name));
// memory_limit exception: allow -1 for "no memory limit".
if ($current > -1 && ($suggested == -1 || $current < $suggested)) {
ini_set($name, $suggested);
}
}
}