
rolling-curl - issue #17
CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set
What steps will reproduce the problem? 1. Install script on server that has "open_basedir" set 2. Run example.php 3. See error message
What is the expected output? What do you see instead?
EXPECTED Standard example.php output
INSTEAD Warning: curl_setopt_array() [function.curl-setopt-array]: 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?
r20
PHP Version 5.2.14 on Linux, MediaTemple (gs)
Please provide any additional information below.
I was able to patch this by changing one line.
ORIGINAL
if (ini_get('safe_mode') == 'Off' || !ini_get('safe_mode')) {
NEW if ((ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off' || !ini_get('safe_mode'))) {
Status: New
Labels:
Type-Defect
Priority-Medium