-
Notifications
You must be signed in to change notification settings - Fork 766
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
Comments
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. |
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. |
This will be fixed in the next release. Will ping here when it's out. |
Fixed in 6.7.0 release. |
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/
The text was updated successfully, but these errors were encountered: