[TYPO3-v4] Using t3lib_div::getUrl() also for xml.gz files from Extension Manager?

François Suter fsu-lists at cobweb.ch
Mon Sep 19 09:56:14 CEST 2011


Hi all,

Some of you may have seen my post from a couple of weeks ago in the 
English list about having problems in the new Extension Manager when 
reading the compressed xml.gz files (mirrors or extensions).

What happens is that the xml.gz files are read directly with 
XMLReader::open() and that's what causes problem. Trying to use the same 
files with fopen() or file_get_contents() causes no problem. Neither 
does using t3lib_div::getUrl().

I would thus like to propose using t3lib_div::getUrl(). I think it's 
also cleaner that we stick to using the TYPO3 API across the board.

I know that the error I observe is obviously due to some weird thing on 
some of the servers we use (ZendServer), but it still means it may 
happen on other platforms. Using t3lib_div::getUrl() causes less 
problems and makes the code more consistent.

Before submitting patches for this I wanted to explain the rationale 
here and maybe get some opinions too.

Attached a sample patch if you want to have an idea. It still needs to 
be applied to all relevant locations of the EM code.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compress_zlib_issue.diff
URL: <http://lists.typo3.org/pipermail/typo3-project-v4/attachments/20110919/0f1d0982/attachment.asc>


More information about the TYPO3-project-v4 mailing list