[Typo3-dev] memory limit check on install

Martin Kutschker Martin.T.Kutschker at blackbox.net
Fri Sep 5 16:13:33 CEST 2003


Hi!

It seems many folks have problems with the memory limit (especially with the extension manager). So I suggest to change the memory check code in t3lib/class.t3lib_install.php to the following:

if ($memory_limit_value<8*1024*1024) {
$this->message($ext, "Memory Limit below default 8 MB","
<i>memory_limit=".get_cfg_var("memory_limit")."</i>
Will likely impose problems if too low.
",2); // warning
}
elseif ($memory_limit_value<16*1024*1024) {
$this->message($ext, "Memory Limit below recommended 16 MB","
<i>memory_limit=".get_cfg_var("memory_limit")."</i>
May impose problems if too low.
",1); // note
}
else $this->message($ext, "Memory Limit","<i>memory_limit=".get_cfg_var("memory_limit")."</i>",-1);

Regards,
Masi

PS: Would a check against the php version make sense? I don't know if there is a minimum version for Typo3. 





More information about the TYPO3-dev mailing list