X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fpersistent_handles_002.phpt;h=5b5d28cf60af23c4f0e40525077284a7b9d760f3;hb=85a0db601dd0f1041b038c6513c6b30f8b2304cf;hp=6efa9cbfaecc71d0c0fe8cb129e929bf6d519bb6;hpb=f25310e793f05996d99ac7476cc1f2437e5bfb0e;p=m6w6%2Fext-http diff --git a/tests/persistent_handles_002.phpt b/tests/persistent_handles_002.phpt index 6efa9cb..5b5d28c 100644 --- a/tests/persistent_handles_002.phpt +++ b/tests/persistent_handles_002.phpt @@ -3,6 +3,7 @@ persistent handles --SKIPIF-- @@ -17,7 +18,7 @@ echo "No free handles!\n"; foreach (http_persistent_handles_count() as $provider => $idents) { foreach ((array)$idents as $ident => $counts) { if (!empty($counts["free"])) { - printf("%s, %s, %s\n", $provider, $ident, $counts["free"]); + printf("%a, %a, %a\n", $provider, $ident, $counts["free"]); } } } @@ -25,7 +26,8 @@ foreach (http_persistent_handles_count() as $provider => $idents) { http_get("http://www.google.com/", null, $info[]); echo "One free request handle within GLOBAL: "; -var_dump(http_persistent_handles_count()->http_request["GLOBAL"]["free"]); +$h = http_persistent_handles_count(); +var_dump($h->http_request["GLOBAL"]["free"]); echo "Reusing request handle: "; http_get("http://www.google.com/", null, $info[]); @@ -38,7 +40,7 @@ print_r(http_persistent_handles_count()); echo "Done\n"; ?> --EXPECTF-- -%sTEST +%aTEST No free handles! One free request handle within GLOBAL: int(1) Reusing request handle: bool(true)