--TEST-- HttpRequestPool --SKIPIF-- (int) PHP_VERSION) and die('skip PHP5 is required for Http classes'); ?> --FILE-- attach($reqs[] = new HttpRequest($url, HTTP_HEAD)); } $pool->send(); foreach ($reqs as $req) { echo $req->getResponseInfo('effective_url'), '=', $req->getResponseCode(), ':', $req->getResponseMessage()->getResponseCode(), "\n"; $pool->detach($req); $pool->attach($req); } try { $pool->send(); } catch (HttpException $ex) { echo "Catched\n"; } $pool->reset(); echo "Done\n"; ?> --EXPECTF-- Content-type: text/html 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