projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
ec355cd
)
- fix put requests
author
Michael Wallner
<mike@php.net>
Wed, 28 Dec 2005 22:21:01 +0000
(22:21 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 28 Dec 2005 22:21:01 +0000
(22:21 +0000)
http_request_object.c
patch
|
blob
|
history
diff --git
a/http_request_object.c
b/http_request_object.c
index d2a51921d547cfba1cf14058cb1c464ce9a273b4..7567b96d342edeaa482423b378369dca9ad9d9a7 100644
(file)
--- a/
http_request_object.c
+++ b/
http_request_object.c
@@
-446,7
+446,7
@@
STATUS _http_request_object_requesthandler(http_request_object *obj, zval *this_
php_stream *stream = php_stream_open_wrapper(Z_STRVAL_P(GET_PROP(obj, putFile)), "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL);
if (stream && !php_stream_stat(stream, &ssb)) {
php_stream *stream = php_stream_open_wrapper(Z_STRVAL_P(GET_PROP(obj, putFile)), "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL);
if (stream && !php_stream_stat(stream, &ssb)) {
- http_request_body_init_ex(obj->request->body, HTTP_REQUEST_BODY_UPLOADFILE, stream, ssb.sb.st_size, 1);
+
obj->request->body =
http_request_body_init_ex(obj->request->body, HTTP_REQUEST_BODY_UPLOADFILE, stream, ssb.sb.st_size, 1);
} else {
status = FAILURE;
}
} else {
status = FAILURE;
}