From 5030a6b1909ce10f584fb8223f6af8110de45cff Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 22 May 2005 17:59:42 +0000 Subject: [PATCH] - fix type - update config.m4 --- config.m4 | 4 ++-- http_methods.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.m4 b/config.m4 index b8724e9..58f290a 100644 --- a/config.m4 +++ b/config.m4 @@ -71,10 +71,10 @@ dnl ---- dnl ---- dnl DONE dnl ---- - PHP_HTTP_SOURCES="http.c http_functions.c http_methods.c phpstr/phpstr.c \ + PHP_HTTP_SOURCES="missing.c http.c http_functions.c http_methods.c phpstr/phpstr.c \ http_util_object.c http_message_object.c http_request_object.c \ http_response_object.c http_exception_object.c \ - http_api.c http_auth_api.c http_cache_api.c http_curl_api.c http_date_api.c \ + http_api.c http_auth_api.c http_cache_api.c http_request_api.c http_date_api.c \ http_headers_api.c http_message_api.c http_send_api.c http_url_api.c" PHP_NEW_EXTENSION([http], $PHP_HTTP_SOURCES, [$ext_shared]) PHP_SUBST([HTTP_SHARED_LIBADD]) 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; -- 2.30.2