Bug #16070

Fatal error with function gzfile in class.em_index.php on line 1424

Added by Norbert Schneider over 9 years ago. Updated over 8 years ago.

Status:Closed Start date:2006-04-20
Priority:Should have Due date:
Assigned To:Michael Stucki % Done:

0%

Category:Extension Manager Spent time: -
Target version:-
TYPO3 Version:4.0 Is Regression:
PHP Version:5 Sprint Focus:
Complexity:

Description

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 409 bytes) in /var/www/t3templ/typo3_src-4.0/typo3/mod/tools/em/class.em_index.php on line 1424

EM fetches extension.xml.gz, writes it to typo3temp, but gzfile(...) is not able to uncompress it.

$mirrors = implode(gzfile($mfile)) on line 1392 works obviosly

php 4.3.9 : error
php 5.0.4: error
php 5.1.9 : works !!!
php: allow_url_open=On
--with-zlib
Registered PHP Streams: php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps
(issue imported from #M3304)


Related issues

duplicates Core - Bug #15663: EM2 need more than 32 MB Closed 2006-02-17

History

#1 Updated by Norbert Schneider over 9 years ago

It's not implode(), it's gzfile() !!!

var $DebugTempArray = array();
...
$DebugTempArray = gzfile(PATH_site.'typo3temp/extensions.xml.gz');
$content .= this->xmlhandler->parseExtensionsXML(implode($DebugTempArray));

#2 Updated by Norbert Schneider over 9 years ago

Sorry:

5.1.9 works ==> 5.1.2 works!!!

#3 Updated by Norbert Schneider over 9 years ago

I tested:

echo(implode(gzfile('/var/www/t3templ/mandant/xxx/typo3template/typo3temp/extensions.xml.gz')));
?>

It work's well with my PHP 5.0.4 !!

Is it a TYPO3 configuration problem ?

#4 Updated by Norbert Schneider over 9 years ago

I tested a memory_limit = 50M.

It works, but it is too much!

#5 Updated by Michael Stucki almost 9 years ago

I am closing this bug since it seems to be a duplicate of 2615. Please try out the extension he published and post your feedback there...

Also available in: Atom PDF