6 skipif(!defined("HTTP_SUPPORT_PERSISTENCE") || !http_support(HTTP_SUPPORT_PERSISTENCE), "need persistent handle support");
9 http.persistent.handles.ident=GLOBAL
14 echo "No free handles:\n";
15 var_dump(http_persistent_handles_count());
16 http_get("http://www.google.com/", null, $info[]);
17 echo "One free request handle within GLOBAL:\n";
18 var_dump(http_persistent_handles_count()->http_request["GLOBAL"]);
19 echo "Reusing request handle:\n";
20 http_get("http://www.google.com/", null, $info[]);
21 var_dump($info[0]["pretransfer_time"] > 100 * $info[1]["pretransfer_time"], $info[0]["pretransfer_time"], $info[1]["pretransfer_time"]);
22 echo "Handles' been cleaned up:\n";
23 #http_persistent_handles_clean();
24 var_dump(http_persistent_handles_count());
30 object(stdClass)#%d (%d) {
31 ["http_request_pool"]=>
37 ["http_request_datashare"]=>
40 ["http_request_datashare_lock"]=>
44 One free request handle within GLOBAL:
46 Reusing request handle:
50 Handles' been cleaned up:
51 object(stdClass)#%d (%d) {
52 ["http_request_pool"]=>
60 ["http_request_datashare"]=>
63 ["http_request_datashare_lock"]=>