[TYPO3-core] RFC: Bug #5985 - warning when CURLOPT_FOLLOWLOCATION is set

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Mon Aug 6 21:48:12 CEST 2007


Hi!

Branches: trunk, TYPO3_4-1

Problem: Since PHP 5.2.0, 5.1.5 and 4.4.4 (see PHP Changelog) 
CURLOPT_FOLLOWLOCATION is not allowed when open_basedir or safe_mode are 
enabled. curl_setopt() will issue a warning in this case.

Solution: suppress output with @.

Optional: check the return value of curl_setopt() and log a failure.

Masi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug5985.diff
Type: text/x-diff
Size: 936 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070806/8153a756/attachment.diff 


More information about the TYPO3-team-core mailing list