Commit 0a2ae120 authored by Ingmar Schlecht's avatar Ingmar Schlecht
Browse files

Added option to set the PHP memory_limit with the install tool.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_3-7@486 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 89d35bbc
2004-09-19 Ingmar Schlecht <ingmars@web.de>
* Added option to set the PHP memory_limit with the install tool.
2004-09-19 Michael Stucki <mundaun@gmx.ch>
* Replaced all (comments AND code!) occurences of "writeable" with "writable"
......
......@@ -73,6 +73,7 @@ $TYPO3_CONF_VARS = Array(
't3lib_cs_utils' => '', // String (values: "iconv", "recode", "mbstring", default is homemade PHP-code). Defines which of these PHP-features to use for various Charset processing functions in t3lib_cs. Will speed up charset functions radically.
'no_pconnect' => 0, // Boolean: If true, "connect" is used instead of "pconnect" when connecting to the database!
'multiplyDBfieldSize' => 1, // Double: 1-5: Amount used to multiply the DB field size when the install tool is evaluating the database size (eg. "2.5"). This is useful if you want to expand the size of fields for utf-8 etc. For western european sites using utf-8 the need should not be for more than twice the normal single-byte size (2) and for chinese / asian languages 3 should suffice.
'setMemoryLimit' => 0, // Integer, memory_limit in MB: If more than 16, TYPO3 will try to use ini_set() to set the memory limit of PHP to the value. This works only if the function ini_set() is not disabled by your sysadmin.
),
'EXT' => Array ( // Options related to the Extension Management
'noEdit' => 1, // Boolean: If set, the Extension Manager does NOT allow extension files to be edited! (Otherwise both local and global extensions can be edited.)
......@@ -299,6 +300,13 @@ function debugEnd() {
$T3_SERVICES = array();
// Set PHP memory limit depending on value of $TYPO3_CONF_VARS["SYS"]["setMemoryLimit"]
if(intval($TYPO3_CONF_VARS["SYS"]["setMemoryLimit"])>16) {
@ini_set('memory_limit',intval($TYPO3_CONF_VARS["SYS"]["setMemoryLimit"]).'m');
}
// Load extensions:
if (TYPO3_MODE=='FE' && is_object($TT)) $TT->push('Loading localconf.php extensions','');
$TYPO3_LOADED_EXT = t3lib_extMgm::typo3_loadExtensions();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment