Project

General

Profile

Actions

Bug #19664

closed

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

Added by Markus Kappe almost 16 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2008-11-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF