X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_methods.c;h=cf1fb9e0ebd96c812e06eb5ebe84ab6576c302e0;hb=724e5fabfb5ed0ff62c37a857c403db89eb5fb5e;hp=a8f5d9489da81df92d4ce113213badc2074d1e93;hpb=6bd8a9818c329bb7526f3db8b8d8ef36a95f303f;p=m6w6%2Fext-http diff --git a/http_methods.c b/http_methods.c index a8f5d94..cf1fb9e 100644 --- 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))) { - 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) { - status = http_request_object_responsehandler(obj, getThis(), NULL); + status = http_request_object_responsehandler(obj, getThis()); } SET_EH_NORMAL(); @@ -2237,15 +2235,15 @@ PHP_METHOD(HttpRequestPool, send) * * Usage: *
- *	socketSend()) {
- *			do_something_else();
- *			if (!$pool->socketSelect()) {
- *				die('Socket error');
- *			}
- *		}
- *		$pool->socketRead();
- *	?>
+ * socketSend()) {
+ *         do_something_else();
+ *         if (!$pool->socketSelect()) {
+ *             die('Socket error');
+ *         }
+ *     }
+ *     $pool->socketRead();
+ * ?>
  * 
*/ 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); } +/* }}} */ /* }}} */