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'))) {
Original issue reported on code.google.com by toddl...@gmail.com on 28 Oct 2010 at 3:14
Original issue reported on code.google.com by
toddl...@gmail.com
on 28 Oct 2010 at 3:14