4 <?php include "skipif.inc"; ?>
7 $f = new http\Client\Factory(array("persistentHandleId" => "foo"));
8 $r = $f->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at"))
9 ->setOptions(array("connecttimeout"=> 90, "timeout" =>300))
11 $f = new http\Client\Factory(array("persistentHandleId" => "bar"));
12 $r = $f->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at"))
13 ->setOptions(array("connecttimeout"=> 90, "timeout" =>300));
15 var_dump(http\Env::statPersistentHandles());
16 http\Env::cleanPersistentHandles();
17 var_dump(http\Env::statPersistentHandles());
21 var_dump(http\Env::statPersistentHandles());
25 object(stdClass)#%d (3) {
26 ["http_client.curl"]=>
43 ["http_client_pool.curl"]=>
46 ["http_client_datashare.curl"]=>
50 object(stdClass)#%d (3) {
51 ["http_client.curl"]=>
61 ["http_client_pool.curl"]=>
64 ["http_client_datashare.curl"]=>
68 object(stdClass)#%d (3) {
69 ["http_client.curl"]=>
79 ["http_client_pool.curl"]=>
82 ["http_client_datashare.curl"]=>