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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!