From: Michael Wallner Date: Tue, 14 Jun 2005 19:21:22 +0000 (+0000) Subject: - update X-Git-Tag: RELEASE_0_9_0~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4547a96a87b50ae94e403cfda049f1e2471af516;p=m6w6%2Fext-http - update --- diff --git a/tests/HttpRequestPool_001.phpt b/tests/HttpRequestPool_001.phpt index d68330f..b3a035b 100644 --- a/tests/HttpRequestPool_001.phpt +++ b/tests/HttpRequestPool_001.phpt @@ -18,13 +18,17 @@ foreach ($urls as $url) { } $pool->send(); foreach ($reqs as $req) { - echo $req->getResponseInfo('effective_url'), '=', + echo $req->getResponseInfo('effective_url'), '=', $req->getResponseCode(), ':', $req->getResponseMessage()->getResponseCode(), "\n"; $pool->detach($req); $pool->attach($req); } -$pool->send(); +try { + $pool->send(); +} catch (HttpException $ex) { + echo "Catched\n"; +} $pool->reset(); echo "Done\n"; ?> @@ -35,4 +39,5 @@ X-Powered-By: PHP/%s http://www.php.net/=200:200 http://pear.php.net/=200:200 http://pecl.php.net/=200:200 +Catched Done