Fix bug #64433: does not follow redirects for non-3xx response codes
Skip test when --with-curlwrappers enabled.
Fix test
Merge branch 'PHP-5.3' into PHP-5.4
Fixed Bug #64565 copy doesn't report failure on partial copy

_php_stream_copy_to_stream_ex, when mmap is possible, doesn't check
if actually written bytes match read bytes.

Fix this (paranoid check) to be consistent with non mmap mode

Seems hard to add a unit test, as this rely on a full filesystem.
fix comment
keep previous test to avoid any behavior change
NEW for #64565
Add CURL_WRAPPERS_ENABLE constant

see http://news.php.net/php.internals/66871
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Use new constant replace ugly trick
format
Fix #64572: Clean up after the test

Lets not leave stuff lying around.
Fix #64572: Clean up after the test

Lets not leave stuff lying around.