X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_methods.c;h=94a47573f3e69c164cb2fd85077649727eb7c77e;hb=48981407809f0404e0427637f8474c9ccc2eafa4;hp=d71c2caa6d4d7a5f4756ac6baabea975c6eabba0;hpb=92d91587592727bbf0369e6eae8eba157063274d;p=m6w6%2Fext-http diff --git a/http_methods.c b/http_methods.c index d71c2ca..94a4757 100644 --- a/http_methods.c +++ b/http_methods.c @@ -2156,8 +2156,8 @@ PHP_METHOD(HttpRequest, send) * } * $pool->send(); * foreach ($urls as $url) { - * printf("%s (%s) is %s\n", - * $url, $req[$url]->getResponseInfo('effective_url'), + * printf("%s (%s) is %s\n", + * $url, $req[$url]->getResponseInfo('effective_url'), * $r->getResponseCode() == 200 ? 'alive' : 'not alive' * ); * } @@ -2255,11 +2255,16 @@ PHP_METHOD(HttpRequestPool, detach) */ PHP_METHOD(HttpRequestPool, send) { + STATUS status; getObject(http_requestpool_object, obj); NO_ARGS; - RETURN_SUCCESS(http_request_pool_send(&obj->pool)); + SET_EH_THROW_HTTP(); + status = http_request_pool_send(&obj->pool); + SET_EH_NORMAL(); + + RETURN_SUCCESS(status); } /* }}} */