Edit report at https://bugs.php.net/bug.php?id=65646&edit=1

 ID:                 65646
 Updated by:         ahar...@php.net
 Reported by:        butesa at freenet dot de
 Summary:            re-enable CURLOPT_FOLLOWLOCATION with open_basedir
                     or safe_mode
-Status:             Assigned
+Status:             Closed
 Type:               Feature/Change Request
 Package:            cURL related
 Operating System:   any
 PHP Version:        5.5.3
 Assigned To:        aharvey
 Block user comment: N
 Private report:     N

 New Comment:

The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Implemented on master:
https://github.com/php/php-src/commit/fba290c061027c24e4c8effdba37addd3430c3d4


Previous Comments:
------------------------------------------------------------------------
[2013-09-10 07:08:39] sudanisayfree at gmail dot com

I use Nimbuzz! Developers Program in there website :

( http://developer.nimbuzz.com/page.php?page=manual )

     To make the program work by downloading this folder : 

http://developer.nimbuzz.com/tools/docs/hello-world.rar
there you should Extract this codebase and add the
folder 'hello-world' in the document
root of your server.
So if your hosting is
www.myhosting.com, try opening
http://www.myhosting.com/hello-
world/api.php, you should see the
page return an xml response.
This is the Callback URL for your
chat buddy. Please provide us with
this callback URL on
developers.nimbuzz.com or mail us
at developers.nimbuzz.com

then you must Make config changes. Replace
'test123' with TESTJID provided by
us in file configuration.php.

Add your chat buddy to your roster
using TESTJID provided by us. Use
'bot TESTJID' to add chat buddy to
your roster on PC/MAC client.

------------------------------------------------------------------------
[2013-09-10 06:26:40] ahar...@php.net

I have an implementation of this on a branch in my GitHub fork, but don't have 
time to finish testing it tonight. I'll try to get back to it later in the week.

------------------------------------------------------------------------
[2013-09-09 21:27:10] butesa at freenet dot de

Description:
------------
CURLOPT_FOLLOWLOCATION is disabled when open_basedir is set or when safe_mode 
is on.
Since 7.19.4, curl won't follow a location-header that uses the file-protocol. 
So using CURLOPT_FOLLOWLOCATION in combination with open_basedir or safe_mode 
should be fine.
("Since 7.19.4, libcurl can limit what protocols it will automatically follow. 
The accepted protocols are set with CURLOPT_REDIR_PROTOCOLS and it excludes the 
FILE protocol by default." 
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTFOLLOWLOCATION )



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65646&edit=1

Reply via email to