diff options
author | Pierre Joye <pajoye@php.net> | 2010-08-23 18:05:05 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-08-23 18:05:05 +0000 |
commit | 4cda8a7797c3d5e94fc51b7e6a834f9854ca86bd (patch) | |
tree | a44d515ef2e7b98d242b3b911c6640c644c639e5 /ext/standard | |
parent | d8d014be78f7c60ec0d0ed6ca19e13779188c933 (diff) | |
download | php-git-4cda8a7797c3d5e94fc51b7e6a834f9854ca86bd.tar.gz |
-fix logic (and BC break)
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/http_fopen_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 4ae78f3ac4..7d238d65ac 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -678,7 +678,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path, } if (!reqok || (location[0] != '\0' && follow_location)) { - if (!follow_location && (((options & STREAM_ONLY_GET_HEADERS) || ignore_errors) && redirect_max <= 1)) { + if (!follow_location || (((options & STREAM_ONLY_GET_HEADERS) || ignore_errors) && redirect_max <= 1)) { goto out; } |