[TYPO3-core] RFC #12773: [PHP 5.3] Extension uploads are not possible
Bastian Waidelich
bastian at typo3.org
Thu Nov 26 12:45:53 CET 2009
Dmitry Dulepov wrote:
Hi Dmitry,
> Download WSDL in question using TYPO3 functions and pass its local copy
> to SoapClient.
I can't test your patch ATM, but I have a question:
It seems you create a temp file for each request. Wouldn't it be worth
it to generate the temporary filename from a hash of the contents, like:
protected·function·getSoapURL($url)·{
$content·=·t3lib_div::getURL($url);
$contentHash = t3lib_div::shortMD5($content);
$this->filename·=·PATH_site . 'typo3temp/' . 't3em-' . $contentHash .
'.wsdl';
if (!is_readable($this->filename)) {
t3lib_div::writeFileToTypo3tempDir($this->filename, $content);
}
return·'file:///'·.·$this->filename;
}
(untested)
Bastian
More information about the TYPO3-team-core
mailing list