X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_functions.c;h=8ce961fdac10ccdf666076eb2ad5bd7cda2db923;hb=1dbcba16c7ba9c580b12e9fdce49b6b2a190233b;hp=b1e2256c6ab72dc129a2454ee39786c7776d10e9;hpb=af3c9945f927e8e2ebdc8e7707b70ec3ba7addfc;p=m6w6%2Fext-http diff --git a/http_functions.c b/http_functions.c index b1e2256..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, HTTP_DEFAULT_STREAM_CONTEXT))) { + 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)) {