Issue Bug Closed

#19664Poor memory management leads to crash when trying to configure large extensions (e.g. phpmyadmin 3.3.0)

Markus Kappe 11/29/08, 14:13 updated 04/08/13, 01:45

Description

When I try to configure the phpmyadmin 3.3.0 using the extension manager, I only get a blank screen.
This is caused by the consumption of very much memory.

phpmyadmin is larger than 12 MB and the whole code is read into an array:

typo3/mod/tools/em/class.em_index.php ~ 4091:
’content’ => t3lib_div::getUrl($file)

But the content is never unset again.
My system: memory_limit: 20MB, PHP 5.2.6 (default from my provider)

I would understand when got the message “memory limit exceeded”, but all that happens is that I get a blank screen.
I suppose that has something to do with a bug in memory management in PHP.

Anyway, you can work around the bug when unsetting the variable after it is not used anymore.

// class.em_index.php ~ 4082:
foreach($fileArr as $file) {
/* … /
‘content’ => t3lib_div::getUrl($file)
/
… */
// ~ 4105
unset ($uploadArray[‘FILES’][$relFileName][‘content’]);
}
(issue imported from #M9865)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.