Bug #16070
closedFatal error with function gzfile in class.em_index.php on line 1424
0%
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)
Updated by Norbert Schneider over 18 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));
Updated by Norbert Schneider over 18 years ago
Sorry:
5.1.9 works ==> 5.1.2 works!!!
Updated by Norbert Schneider over 18 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 ?
Updated by Norbert Schneider over 18 years ago
I tested a memory_limit = 50M.
It works, but it is too much!
Updated by Michael Stucki almost 18 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...