Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl CURLOPT_FOLLOWLOCATION not working with open_basedir set #1

Closed
vtsao opened this issue Dec 20, 2013 · 4 comments
Closed

curl CURLOPT_FOLLOWLOCATION not working with open_basedir set #1

vtsao opened this issue Dec 20, 2013 · 4 comments
Assignees
Labels

Comments

@vtsao
Copy link
Contributor

vtsao commented Dec 20, 2013

What steps will reproduce the problem?
1.Set open_basedir in php.ini on the server
2.Try to run code
$networkService = $user->GetService('NetworkService', API_VERSION));
3.

What is the expected output? What do you see instead?
I should get NETWORK SERVICE, instead i get an error:
"curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set"

What version of the product are you using? On what operating system?
I used many version.
Windows 7.

Please provide any additional information below.
Maybe you could try to take a look at this article and try to find a workaround for this:
http://webhostbug.com/php-curl-curlopt-followlocation-and-open_basedir-or-safe-mode/

@frankkessler
Copy link

I'm running into this issue as well. I would love to see a workaround put in the project since disabling open_basedir just ins't possible for me.

@vtsao vtsao self-assigned this Apr 8, 2014
@vtsao
Copy link
Contributor Author

vtsao commented Oct 6, 2014

So this is just a warning message. I'm going to add a check for if open_basedir is set to not set CURLOPT_FOLLOWLOCATION to true. So after that you will no longer get the warning message.

@vtsao
Copy link
Contributor Author

vtsao commented Nov 17, 2014

This will be fixed in the next release. Will ping here when it's out.

@vtsao
Copy link
Contributor Author

vtsao commented Dec 9, 2014

Fixed in 6.7.0 release.

@vtsao vtsao closed this as completed Dec 9, 2014
@vovan47 vovan47 mentioned this issue May 24, 2017
@Telrik Telrik mentioned this issue Jan 12, 2018
fiboknacky added a commit that referenced this issue Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants