- update
authorMichael Wallner <mike@php.net>
Tue, 14 Jun 2005 19:21:22 +0000 (19:21 +0000)
committerMichael Wallner <mike@php.net>
Tue, 14 Jun 2005 19:21:22 +0000 (19:21 +0000)
tests/HttpRequestPool_001.phpt

index d68330f888383d4c211b1fdbbf1d4ff01033504e..b3a035b8389d794857e64e8c5c968ad45b95553a 100644 (file)
@@ -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