- fix type
authorMichael Wallner <mike@php.net>
Sun, 22 May 2005 17:59:42 +0000 (17:59 +0000)
committerMichael Wallner <mike@php.net>
Sun, 22 May 2005 17:59:42 +0000 (17:59 +0000)
- update config.m4

config.m4
http_methods.c

index b8724e98accf0d92d28a6076b894b2039c7a537f..58f290a8c8349c9ff7a6ac6a3b109ed82721ad9b 100644 (file)
--- 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])
index 4d7518a5ff574c3db22ca5bfb7a5ad6999a264ac..4b2493586fba76569483524f74a6ed48956508c6 100644 (file)
@@ -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;