[TYPO3-core] Error in your Patch: 404_v3c.txt

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Mon Jul 10 21:18:50 CEST 2006


Ernesto Baschny [cron IT] schrieb:
> Dmitry Dulepov schrieb am 10.07.2006 16:20:
> 
>> Yes, error exists but correct patch would be as in the attached file.
>> $ctx have to be used in that place, it only should be preceeded by one
>> 'false' parameter.
>>
>> I am sending this message to typo3 core team as well. Hopefully patch
>> will be approved, this is easy-to-check fix (just by php documentation).
> 
> I read in the php-documentation the the third parameter (context) was
> added in PHP 5.0. So this means the function call will return an empty
> content if called in PHP 4.3.x.

You're right. My last patch took care of that but Dmitry worked on his 
copy and I forgot about it:

if (function_exists('file_get_contents') &&
     version_compare(phpversion(), '5.0', '>=')) {
   $content = @file_get_contents($url, false, $ctx);
}

Sorry,
Masi



More information about the TYPO3-team-core mailing list