From 4547a96a87b50ae94e403cfda049f1e2471af516 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 14 Jun 2005 19:21:22 +0000 Subject: [PATCH] - update --- tests/HttpRequestPool_001.phpt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.30.2