[TYPO3-core] Error in your Patch: 404_v3c.txt
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Jul 10 19:35:19 CEST 2006
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.
> Index: t3lib/class.t3lib_div.php
> ===================================================================
> --- t3lib/class.t3lib_div.php (revision 1615)
> +++ t3lib/class.t3lib_div.php (working copy)
> @@ -2372,7 +2372,7 @@
> );
>
> if (function_exists('file_get_contents')) {
> - $content = @file_get_contents($url, $ctx);
> + $content = @file_get_contents($url, false, $ctx);
> }
> elseif (false !== ($fd = @fopen($url, 'rb', false, $ctx))) {
> $content = '';
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list