X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_methods.c;h=4b2493586fba76569483524f74a6ed48956508c6;hb=e5c512123b227154d4a20003f417835ee678b3aa;hp=4d7518a5ff574c3db22ca5bfb7a5ad6999a264ac;hpb=781c90c0447166dd52ef881ae15751fa466c32fb;p=m6w6%2Fext-http diff --git a/http_methods.c b/http_methods.c index 4d7518a..4b24935 100644 --- a/http_methods.c +++ b/http_methods.c @@ -2073,7 +2073,7 @@ PHP_METHOD(HttpRequest, send) php_stream_statbuf ssb; zval *file = GET_PROP(obj, putFile); - if ( (stream = php_stream_open_wrapper(Z_STRVAL_P(file), , "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL)) && + if ( (stream = php_stream_open_wrapper(Z_STRVAL_P(file), "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL)) && !php_stream_stat(stream, &ssb)) { body.type = HTTP_REQUEST_BODY_UPLOADFILE; body.data = stream;