Einzelnen Beitrag anzeigen
  #3  
Alt 20.05.06, 02:47
Benutzerbild von papman
papman papman ist offline
Forum Stammgast
 
Registriert seit: 14.11.05
Ort: Berlin
Beiträge: 131

Andere Lösung aus dem Bugtracker #0003302
Zitat:
I have the PRoblem that the original Extension Manager failed with Out of Memory Problem PHP Message. Allocation failed. He also try to allocate few gigs of Ram and it not help. If found also that the implode function was not used correct by this class twice. I fixed the code with the knowledge i have about this class and describle the code changes as follow.

The follow code are alredy changed code. It is not the original code! This changed solved both Problems on my side.

File: typo3/mod/tools/em/class.em_index.php
Line 1394:
/* *** Implode Parameter was wrong *** */
$mirrors = implode(chr(10), gzfile($mfile));
t3lib_div::unlink_tempfile($mfile);


Line: 1425
/* *** Implode Parameter was wrong *** */
$mirrors = implode(chr(10), gzfile($mfile));
t3lib_div::unlink_tempfile($mfile);


Line: 2976:
/* *** OUT OF MEMORY BUG START HERE *** */
if(strlen($emConf['PHP_version'])) {
$versionRange = $this->splitVersionRange($emConf['PHP_version']);
//if(version_compare($versionRange[0],'3.0.0','<')) $versionRange[0] = '3.0.0';
//if(version_compare($versionRange[1],'3.0.0','<')) $versionRange[1] = '';
$emConf['constraints']['depends']['php'] = implode('-',$versionRange);
}
if(strlen($emConf['TYPO3_version'])) {
$versionRange = $this->splitVersionRange($emConf['TYPO3_version']);
//if(version_compare($versionRange[0],'3.5.0','<')) $versionRange[0] = '3.5.0';
//if(version_compare($versionRange[1],'3.5.0','<')) $versionRange[1] = '';
$emConf['constraints']['depends']['typo3'] = implode('-',$versionRange);
}
/* *** OUT OF MEMORY BUG STOP HERE *** */
Hat bei diversen geholfen,,,,

http://typo3.org/documentation/report-bugs/
__________________
never run a changing system
__________________________________________
Apache 1.3.33 PHP 4.3.10-16 MySQL 4.0.24 debian 3.1 Typo 4.0
Mit Zitat antworten