OussamaOBO / gshoppingcontent-php

Automatically exported from code.google.com/p/gshoppingcontent-php
Other
0 stars 0 forks source link

CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Use on a Host that has open_basedir set in php.ini
2. enable error_reporting

What is the expected output? What do you see instead?

No Warnings, Warnings in Output, Option not set 

What version of the product are you using? On what operating system?

Debian Squeeze

Please provide any additional information below.

Solution would be to see if the option is really necessary in the library, 
either check if safe_mode or open_basedir is set and (if possible) workaround 
the limits like seen here: http://php.net/manual/de/function.curl-setopt.php 
(comment: zsalab 27-Jan-2011 05:12) or not set the option at all.

Original issue reported on code.google.com by a...@modula-shop-systems.de on 21 Mar 2012 at 1:21

GoogleCodeExporter commented 8 years ago
I find the post a bit hard to parse:
http://php.net/manual/en/function.curl-setopt.php#102121

Do you mind summarizing.

In particular
1) What is a good typical default value of max redirects?
2) What is the expected output or outputs of ini_get('open_basedir')?
3) What is the expected output or outputs of ini_get('safe_mode' == 'Off')?
4) What version or versions of PHP is this available on?

Original comment by dhermes@google.com on 23 Apr 2012 at 10:26

GoogleCodeExporter commented 8 years ago

Original comment by dhermes@google.com on 23 Apr 2012 at 10:27