[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 11:59:06 CEST 2011
Hi,
> It's just the later processing of the *local* xml.z file that is making
> troubles for Francois, because the current method makes
> XMLReader::open() on a "compress.zlib://.../typo3temp/extensions.xml.Z"
> file, while Francois proposes to make a $xmlContent = t3lib::getUrl() on
> that first, and *then* pass the (uncompressed) xmlContent to XMLReader.
Exactly, proxies wouldn't be an issue here. So maybe actually using
file_get_contents() directly might be ok, but I don't know if it's part
of the functions that may be blocked per PHP configuration (like fopen
or fsockopen).
> I have nothing against this, but it might be that it takes more memory
> to do so, which should be considered (the uncompressed extensions.xml is
> about 24M in size).
I didn't think about that. It's true that it would take some additional
memory. Maybe it's then worth testing if XMLReader::open() has been
successful or not and call t3lib_div::getURL() as a fall back. It
introduces an additional test, but I guess it's not an issue in this case.
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-project-v4
mailing list