Diff for /embedaddon/php/ext/curl/streams.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:47:53 version 1.1.1.2, 2012/05/29 12:34:36
Line 395  php_stream *php_curl_stream_opener(php_stream_wrapper  Line 395  php_stream *php_curl_stream_opener(php_stream_wrapper 
                                 }                                  }
                         }                          }
                         if (mr > 1) {                          if (mr > 1) {
                                if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) {                                if (PG(open_basedir) && *PG(open_basedir)) {
                                         curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0);                                          curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0);
                                 } else {                                  } else {
                                         curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);                                          curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);
Line 403  php_stream *php_curl_stream_opener(php_stream_wrapper  Line 403  php_stream *php_curl_stream_opener(php_stream_wrapper 
                                 curl_easy_setopt(curlstream->curl, CURLOPT_MAXREDIRS, mr);                                  curl_easy_setopt(curlstream->curl, CURLOPT_MAXREDIRS, mr);
                         }                          }
                 } else {                  } else {
                        if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) {                        if (PG(open_basedir) && *PG(open_basedir)) {
                                 curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0);                                  curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0);
                         } else {                          } else {
                                 curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);                                  curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>