Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #9415 Disabled CURLOPT_FOLLOWLOCATION in 4.4.4
Submitted: 2006-11-22 15:21 UTC
From: mailing001 at xego dot it Assigned: yunosh
Status: Closed Package: SOAP (version 0.9.4)
PHP Version: 4.4.4 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-11-22 15:21 UTC] mailing001 at xego dot it (peggy)
Description: ------------ From php 4.4.4 CURLOPT_FOLLOWLOCATION is disabled in curl when open_basedir or safe_mode are enabled. Test script: --------------- This is a workaround/patch: --- SOAP/Transport/HTTP.php.orig 2006-11-22 16:08:42.000000000 +0100 +++ SOAP/Transport/HTTP.php 2006-11-22 16:14:51.000000000 +0100 @@ -589,7 +589,9 @@ curl_setopt($ch, CURLOPT_URL, $this->url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_FAILONERROR, 0); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + if (! ini_get("safe_mode")) { + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + } curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 1); if (defined('CURLOPT_HTTP_VERSION')) {

Comments

 [2007-01-19 23:26 UTC] yunosh (Jan Schneider)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.