X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_functions.c;h=8ce961fdac10ccdf666076eb2ad5bd7cda2db923;hb=7904ebbfd747d11f0821d2b2712600ab07a36ff6;hp=1c63ba0d6b270f57dbe2a01a28d012e44b98fb59;hpb=60086d086e7f0dbfccf61931c1b2e2b410ccb5bb;p=m6w6%2Fext-http diff --git a/http_functions.c b/http_functions.c index 1c63ba0..8ce961f 100644 --- a/http_functions.c +++ b/http_functions.c @@ -1502,7 +1502,7 @@ PHP_FUNCTION(http_put_file) RETURN_FALSE; } - if (!(stream = php_stream_open_wrapper(file, "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL))) { + if (!(stream = php_stream_open_wrapper_ex(file, "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL, HTTP_DEFAULT_STREAM_CONTEXT))) { RETURN_FALSE; } if (php_stream_stat(stream, &ssb)) {