projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Implement gc handlers
[m6w6/ext-http]
/
src
/
php_http_client_curl.c
diff --git
a/src/php_http_client_curl.c
b/src/php_http_client_curl.c
index e9fa1126e5c6cd72822002d15d64c5582657fab5..18eb944708b7d74b562966a9f4fed1b0e6552aac 100644
(file)
--- a/
src/php_http_client_curl.c
+++ b/
src/php_http_client_curl.c
@@
-198,14
+198,10
@@
static php_resource_factory_ops_t php_http_curlm_resource_factory_ops = {
static size_t php_http_curle_read_callback(void *data, size_t len, size_t n, void *ctx)
{
static size_t php_http_curle_read_callback(void *data, size_t len, size_t n, void *ctx)
{
- php_
http_message_body_t *body = ctx
;
+ php_
stream *s = php_http_message_body_stream(ctx)
;
- if (body && body->res) {
- php_stream *s = php_http_message_body_stream(body);
-
- if (s) {
- return php_stream_read(s, data, len * n);
- } else abort();
+ if (s) {
+ return php_stream_read(s, data, len * n);
}
return 0;
}
}
return 0;
}