projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix mem-leaks with http_curl_callback_ctx
[m6w6/ext-http]
/
http_methods.c
diff --git
a/http_methods.c
b/http_methods.c
index a8f5d9489da81df92d4ce113213badc2074d1e93..cf1fb9e0ebd96c812e06eb5ebe84ab6576c302e0 100644
(file)
--- a/
http_methods.c
+++ b/
http_methods.c
@@
-2125,15
+2125,13
@@
PHP_METHOD(HttpRequest, send)
}
if (SUCCESS == (status = http_request_object_requesthandler(obj, getThis(), &body))) {
}
if (SUCCESS == (status = http_request_object_requesthandler(obj, getThis(), &body))) {
- zval *info = GET_PROP(obj, responseInfo);
- status = http_request_exec(obj->ch, Z_ARRVAL_P(info));
- SET_PROP(obj, responseInfo, info);
+ status = http_request_exec(obj->ch, NULL);
}
http_request_body_dtor(&body);
/* final data handling */
if (SUCCESS == status) {
}
http_request_body_dtor(&body);
/* final data handling */
if (SUCCESS == status) {
- status = http_request_object_responsehandler(obj, getThis()
, NULL
);
+ status = http_request_object_responsehandler(obj, getThis());
}
SET_EH_NORMAL();
}
SET_EH_NORMAL();
@@
-2237,15
+2235,15
@@
PHP_METHOD(HttpRequestPool, send)
*
* Usage:
* <pre>
*
* Usage:
* <pre>
- *
<?php
- *
while ($pool->socketSend()) {
- *
do_something_else();
- *
if (!$pool->socketSelect()) {
- *
die('Socket error');
- *
}
- *
}
- *
$pool->socketRead();
- *
?>
+ * <?php
+ * while ($pool->socketSend()) {
+ * do_something_else();
+ * if (!$pool->socketSelect()) {
+ * die('Socket error');
+ * }
+ * }
+ * $pool->socketRead();
+ * ?>
* </pre>
*/
PHP_METHOD(HttpRequestPool, socketSend)
* </pre>
*/
PHP_METHOD(HttpRequestPool, socketSend)
@@
-2284,6
+2282,7
@@
PHP_METHOD(HttpRequestPool, socketRead)
zend_llist_apply(&obj->pool.handles, (llist_apply_func_t) http_request_pool_responsehandler TSRMLS_CC);
}
zend_llist_apply(&obj->pool.handles, (llist_apply_func_t) http_request_pool_responsehandler TSRMLS_CC);
}
+/* }}} */
/* }}} */
/* }}} */